keytool error: java.lang.Exception: Input not an X.509 certificate
843811Jul 3 2006 — edited Jun 23 2008Hello 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