Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anandsunderraman/ba693a7b3ad3b7551a6d74730f9ff8c4 to your computer and use it in GitHub Desktop.
Save anandsunderraman/ba693a7b3ad3b7551a6d74730f9ff8c4 to your computer and use it in GitHub Desktop.
Troubleshooting trust store issues and ssl
#inspects what is present in the truststore
keytool -list -v -keystore <truststorefile>
#gets certificate of a host via command line
openssl s_client -connect <host>:<port> | tee <cert-contents>
#import certificate into trust store
keytool -import -alias <alias> -file <cert-to-import> -storetype JKS -keystore <truststorefile>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment