Skip to content

Instantly share code, notes, and snippets.

@lorne-luo
Created December 19, 2022 06:02
Show Gist options
  • Save lorne-luo/70878787e27519f25bad1c54fcd1a7bb to your computer and use it in GitHub Desktop.
Save lorne-luo/70878787e27519f25bad1c54fcd1a7bb to your computer and use it in GitHub Desktop.
update java keystore
$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