Import a self signed certificate in AS400 (IBMi Power System) Java keystore

You can use the qsh utility, Qshell command language interpreter.



//Check which certificates are in a Java keystore
keytool -list -v
-keystore /Qopensys/QIBM/ProdData/JavaVM/jdk70/32bit/jre/lib/security/cacerts

//Import a signed certificate to the Java keystore
keytool -import
-file /$ifsPath/mysslcert.cer
-alias mydomain
-keystore /Qopensys/QIBM/ProdData/JavaVM/jdk70/32bit/jre/lib/security/cacerts
-storepass "changeit"

//Check a particular keystore entry using an alias
keytool -list -v
-keystore /Qopensys/QIBM/ProdData/JavaVM/jdk70/32bit/jre/lib/security/cacerts
-alias mydomain

Please Note: Make sure you change the Java keystore Path based on which JVM version you are using...

No comments:

Post a Comment

NO JUNK, Please try to keep this clean and related to the topic at hand.
Comments are for users to ask questions, collaborate or improve on existing.