But if i want to import the PKCS12 certificate into a new keystore, i try to do:
keytool -importcert -alias ssl -trustcacerts -file c:\...\...\...\mypfx.pfx -keystore eee.pfx Enter keystore password:***** Re-enter new password: ***** keytool error: java.lang.Exception: Input not an X.509 certificate Has anyone an idea how to solve this ? regards, Heidi 2011/3/16 Info Olagos <info.ola...@gmail.com> > Thanks. ! > > Very useful document about PKCS12 import. > > Heidi > > 2011/3/16 Christian Geisert <christian.geis...@isu-gmbh.de> > >> Info Olagos schrieb: >> >> ok thanks for info. >>> >>> But the certificate in PKCS#12 format (standard) contains both the >>> private >>> key and public key. It is a standard to transfer the certificates from >>> the >>> public certificate provider to my webserver. >>> >>> Because i didn't generate the private key myself. And i didn't request >>> for a >>> certificate to the certificate provider. It was only my provider who >>> generated the private key and the public key. >>> >> >> Uh, the point of a *private* key is that you keep it private... >> >> So your problem now is that you want to import the private key into the >> JKS? >> See http://cunning.sharp.fm/2008/06/importing_private_keys_into_a.htmlfor a >> solution. >> >> >> Christian >> > > > > -- > Olagos bvba > http://www.olagos.eu <http://www.olagos.eu/> > http://www.olagos.com > http://www.olagos.be > http://www.olagos.nl > Olagos team > Heesterbos 5 > 2570 Duffel > Belgium > > > > -- Olagos bvba http://www.olagos.eu <http://www.olagos.eu/> http://www.olagos.com http://www.olagos.be http://www.olagos.nl Olagos team Heesterbos 5 2570 Duffel Belgium