Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

keytool error: java.lang.Exception: Input not an X.509 certificate

843811Jul 3 2006 — edited Jun 23 2008
Hello guys

I am trying to import a PKCS#12 certificate with a .pfx extension using keytool. the command i have used is:
keytool -import -file achCert1.p12 -alias client_full -keypass ClientKey -keystore client.jks -storepass ClientJKS -storetype pkcs12 -trustcacerts

I have even tried the same command but with the filename being achCert1.pfx but still same error.

I had exported the certificate using IE but read somewhere that use NetScape. So i imported it into NetScape and then again exported it using netscape. But to no avail.

But i get this error:
keytool error: java.lang.Exception: Input not an X.509 certificate

I have J2SE 5 installed on my machine and which is JSSE enabled. And I have also read that JSSE is capable of handling PKCS#12 certifcate format.


Can some one please suggest what I am doing wrong or missing out on.
Please help!!
Thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 21 2008
Added on Jul 3 2006
2 comments
1,012 views