On Fri, 17 May 2002, Haikel wrote:
> Hi,
>
> I'have generated keys in pkcs8 format with java and openssl. The thing
> that was not expected is the difference of the two files structure. The
why not? it's encrypted private key.
Yes, one should expect them to be the same after decryption
> two files I generated look like that:
would you expect someone to read that base64-encoded encrypted data?
> The file generated with java
>
> -----BEGIN ENCRYPTED PRIVATE KEY-----
> MIICrTAnBgoqhkiG9w0BDAEDMBkEFLHA2SGrNrwcUsFrxFftTdvpff0kAgEFBIICgCe/dqz6Z4Qn
>
> .
> bp2JoA19vvY9/z762P4hGSHJWQA4ltQVzvGXScVQ+KpobwU9YH5Qs4JGBPEO7b1L/ONpz+jBj+hF
>
> ykCw3uM=
> -----END ENCRYPTED PRIVATE KEY-----
>
> The file genrated with openssl
>
> -----BEGIN ENCRYPTED PRIVATE KEY-----
> MIICoTAbBgkqhkiG9w0BBQMwDgQIXNLEC6mo9bwCAggABIICgIEW1x+WeSW2K2BV
> .
> qWJ4VA95CfBeJbL9bjnbPog7A5qvhXmxV6rLDfwNyvzEbz2YkLWMDZp5io8Sp1TN
> fd/VfTQ=
> -----END ENCRYPTED PRIVATE KEY-----
>
>
> As you can see the lines have not the same length.
>
> Can anyone, tell me why the two files are different and If it's possible
> to use openssl PKCS8 keys with java.
>
> Thanks
> Haikel MEJRI
>
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]