KEYTOOL - mosinn/DOCS-n-Snippets-n-Steps GitHub Wiki

IMPORT CERT into CACERTS

  • default pwd of cacert is changeit

Import command

  • keytool -import -trustcacerts -alias ANZGlobalRootCAv2 -file "C:\U\certs\ANZ Global Root CA v2.cer" -keystore "%JAVA_HOME%\jre\lib\security\cacerts" -storepass changeit

Verify/LIST command

  • keytool -list -rfc -keystore "%JAVA_HOME%\jre\lib\security\cacerts" -storepass changeit >> C:\U\certsInCacert.txt

Once in JDK cacerts installed, copy paste from one jdk to another, as in background jdk is changed, so copy into security folder to resolve px cert path or ssl issues while build or artifactory downloads failing.