Last active
October 9, 2019 20:39
-
-
Save anandsunderraman/ba693a7b3ad3b7551a6d74730f9ff8c4 to your computer and use it in GitHub Desktop.
Troubleshooting trust store issues and ssl
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
#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