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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Trying to import existing certificate. Exception: Alias <..> does not exist

843811Nov 12 2009 — edited Nov 13 2009
Hi 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.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Dec 11 2009
Added on Nov 12 2009
4 comments
13,954 views