JRuby

calling X509::Certificate#sign for the Certificate initialized from PEM causes IllegalStateException