All you will need to do is comvert the PEM format to DER. If you "user" cert is called me.pem then:
openssl x509 -in me.pem -outform DER -out me.cer
I think that is all you will need to do. I don't have access to my openssl right now, but I have done this before to get the certs into the Windows store. It sounds like the same issue.
Hope I was helpful. Craig.
Liam Escario wrote:
I'm having problems importing my OpennSSL certificates to my keystore. I created my root certificate in cacert.pem and I'm trying to import this now to my keystore.
okay. some progress. I was able to import my CA using keytool. Apparently, you have to specify an alias for it.
keytool -keystore myKeystore -import -alias cacert -file cacert.pem
That worked fine for me. Then I tried importing a certificate signed by my CA. But now it's complaining that "Input not an X.509 certificate". Is it because my extension is ".pem"? But I find it strange that I was able to successfully import my CA cert using keytool, and now that I'm trying to import a certificate signed by my CA cert, its complaining.
So now what do I do? =S
Liam
_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail
______________________________________________________________________ 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]