Wednesday, June 1, 2011

keytool error: java.lang.Exception: Certificate not imported, alias already exists

/usr/java/jdk1.6.0_24/jre/bin/keytool -import -keystore /usr/java/jdk1.6.0_24/jre/lib/security/cacerts -file /tmp/prodrootca.cer -storepass changeit


keytool error: java.lang.Exception: Certificate not imported, alias already exists
 
 
 
SOLUTION:
 
Add the alias key as the default naming already exists
 
 /usr/java/jdk1.6.0_24/jre/bin/keytool  -import -keystore /usr/java/jdk1.6.0_24/jre/lib/security/cacerts -alias prodintermediateca -file /tmp/prodintermediateca.cer -storepass changeit

No comments: