Skip to content

Instantly share code, notes, and snippets.

@chinboon
Last active January 18, 2018 10:52
Show Gist options
  • Save chinboon/0cf711fc7fe9e0dc4cf8cfec10afc065 to your computer and use it in GitHub Desktop.
Save chinboon/0cf711fc7fe9e0dc4cf8cfec10afc065 to your computer and use it in GitHub Desktop.
get-self-signed-certificate.sh
# 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