Last active
January 18, 2018 10:52
-
-
Save chinboon/0cf711fc7fe9e0dc4cf8cfec10afc065 to your computer and use it in GitHub Desktop.
get-self-signed-certificate.sh
This file contains hidden or 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
| # execute this command in a linux box | |
| openssl s_client -connect a.b.com:8543 | |
| # look for text that looks like | |
| -----BEGIN CERTIFICATE----- | |
| MIIG3TCCBcWgAedewdewdewdqewfqewfrewfrefreAQUFADCBzDE2MDQG | |
| ... | |
| sIIG3TCCBcWgAedewdewdewdqewfqewfrewfrefreAQUFADCBzDE2refr | |
| -----END CERTIFICATE----- | |
| # save the contents into a .cer file |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment