Trying to import existing certificate. Exception: Alias <..> does not exist
843811Nov 12 2009 — edited Nov 13 2009Hi my admin just gave me a new PKCS12 certificate and I'm trying to install it into a new keystore. But I get an Exception that the Alias does not exist.
java -version
java version "1.6.0_12"
Java(TM) SE Runtime Environment (build 1.6.0_12-b04)
Java HotSpot(TM) Client VM (build 11.2-b01, mixed mode, sharing)
keytool -importkeystore -destkeystore keystore -srckeystore certificate.pfx -srcstoretype PKCS12 -alias test
Enter destination keystore password:
Re-enter new password:
Enter source keystore password:
keytool error: java.lang.Exception: Alias <test> does not exist
The keystore is for a new jetty web server. This is also a new project so an existing keystore does not exist.