Hi, I have genrated the key using a baltimore free library.
Regards Haikel MEJRI "KUMAR,PANKAJ (HP-Cupertino,ex1)" a écrit : > Hi, > > Did you use Java keytool for generating the private key? If yes, what were > the options. If not, then did you do it programmatically? What methods? what > classes? > > Regards, > Pankaj Kumar. > > -----Original Message----- > From: Haikel > To: [EMAIL PROTECTED] > Sent: 5/17/02 9:10 AM > Subject: URGENT: PKCS8 format to be used with java > Importance: High > > 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 > two files I generated look like that: > > The file generated with java > > -----BEGIN ENCRYPTED PRIVATE KEY----- > MIICrTAnBgoqhkiG9w0BDAEDMBkEFLHA2SGrNrwcUsFrxFftTdvpff0kAgEFBIICgCe/dqz6 > Z4Qn > . > bp2JoA19vvY9/z762P4hGSHJWQA4ltQVzvGXScVQ+KpobwU9YH5Qs4JGBPEO7b1L/ONpz+jB > j+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] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]