Open postmodern opened 2 years ago
not sure about whether the format is expected to be "byte level" same between C-OpenSSL and Java's Bouncy-Castle... as long as one is able to parse other's PEM encoded format and end up with the same object.
The PEM exported by jruby-openssl appears to be much shorter than the PEM exported by CRuby's openssl.
was due https://github.com/jruby/jruby-openssl/commit/401749e67f9e1fa1d56fa6772870118a2aeee981 which explicitly skipped the public part when encoding the private key
Steps To Reproduce
CRuby
JRuby
Expected Result
Actual Result
The PEM exported by jruby-openssl appears to be much shorter than the PEM exported by CRuby's openssl.
Versions
jruby 9.3.2.0 (2.6.8) 2021-12-01 0b8223f905 OpenJDK 64-Bit Server VM 11.0.15+10 on 11.0.15+10 +jit [linux-x86_64]
jruby-openssl (0.12.2 java, default: 0.11.0 java)