Open dharezlak opened 9 years ago
:+1:
According to http://www.cryptosys.net/pki/rsakeyformats.html BEGIN PRIVATE KEY
means the key is in the PKCS#8
format while BEGIN RSA PRIVATE KEY
indicates the PKCS#1
format.
Whereas one is encrypted and one is unencrypted.
:+1:
I had same issue with private keys generated using openssl 1.0 and created workaround, see JGlobus#118
voms-proxy-init version 3.0.3 generates proxy certificate with
-----BEGIN PRIVATE KEY-----
and-----END PRIVATE KEY-----
prefix and postfix which is not recognized byorg.globus.gsi.X509Credential.load(InputStream)
. Cutrrently onlyBEGIN RSA PRIVATE KEY
sequence is supported.