PKCS#8 formatted privkey read ----------------------------- Key: JRUBY-4333 URL: http://jira.codehaus.org/browse/JRUBY-4333 Project: JRuby Issue Type: Improvement Components: OpenSSL Affects Versions: JRuby-OpenSSL 0.6 Environment: any Reporter: Hiroshi Nakamura
NB: PEM_STRING_PKCS8INF and PEM_STRING_PKCS8 are not yet supported. Vote if you need it. (it's a little harder than others to implement it. anyone try?) cf. http://github.com/jruby/jruby-openssl/issues#issue/1 The unit tests in test_rsa_sha1.rb for the oauth-0.3.6 gem fail when using jruby-openssl-0.5.2. This is traced down to the fact that OpenSSL::PKey::RSA.new(IO.read(File.dirname(FILE) + "/keys/rsa.pem") fails in an exception "Neither PUB key nor PRIV key" when the pem file's contents is as below. Note that I tested that the pem file is OK since running (in cygwin) openssl rsa -in rsa.pem -check -noout outputs RSA key ok Any assistance would be greatly appreciated. -----BEGIN PRIVATE KEY----- MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGBALRiMLAh9iimur8V A7qVvdqxevEuUkW4K+2KdMXmnQbG9Aa7k7eBjK1S+0LYmVjPKlJGNXHDGuy5Fw/d 7rjVJ0BLB+ubPK8iA/Tw3hLQgXMRRGRXXCn8ikfuQfjUS1uZSatdLB81mydBETlJ hI6GH4twrbDJCR2Bwy/XWXgqgGRzAgMBAAECgYBYWVtleUzavkbrPjy0T5FMou8H X9u2AC2ry8vD/l7cqedtwMPp9k7TubgNFo+NGvKsl2ynyprOZR1xjQ7WgrgVB+mm uScOM/5HVceFuGRDhYTCObE+y1kxRloNYXnx3ei1zbeYLPCHdhxRYW7T0qcynNmw rn05/KO2RLjgQNalsQJBANeA3Q4Nugqy4QBUCEC09SqylT2K9FrrItqL2QKc9v0Z zO2uwllCbg0dwpVuYPYXYvikNHHg+aCWF+VXsb9rpPsCQQDWR9TT4ORdzoj+Nccn qkMsDmzt0EfNaAOwHOmVJ2RVBspPcxt5iN4HI7HNeG6U5YsFBb+/GZbgfBT3kpNG WPTpAkBI+gFhjfJvRw38n3g/+UeAkwMI2TJQS4n8+hid0uus3/zOjDySH3XHCUno cn1xOJAyZODBo47E+67R4jV1/gzbAkEAklJaspRPXP877NssM5nAZMU0/O/NGCZ+ 3jPgDUno6WbJn5cqm8MqWhW1xGkImgRk+fkDBquiq4gPiT898jusgQJAd5Zrr6Q8 AO/0isr/3aa6O6NLQxISLKcPDk2NOccAfS/xOtfOz4sJYM3+Bs4Io9+dZGSDCA54 Lw03eHTNQghS0A== -----END PRIVATE KEY----- -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email