Created
December 19, 2022 06:02
-
-
Save lorne-luo/70878787e27519f25bad1c54fcd1a7bb to your computer and use it in GitHub Desktop.
update java keystore
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$JAVA_HOME/bin/keytool -importkeystore -srckeystore /<our_ca_certs>.jks -srcstorepass <pass> -destkeystore $JAVA_HOME/lib/security/cacerts -deststorepass changeit | |
$JAVA_HOME/lib/security/cacerts | |
openssl s_client -connect bpaustralia.lei.com:443 -CApath /etc/ssl/certs | |
sudo cp /etc/nginx/certs/lob2023cer.crt /usr/local/share/ca-certificates | |
sudo update-ca-certificates --fresh | |
openssl s_client -showcerts -connect bpaustralia.lei.com:443 | |
sudo keytool -importcert -keystore /usr/lib/jvm/default-java/lib/security/cacerts -storepass changeit -file /etc/nginx/certs/lob2023cer.crt -alias "root_cert" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment