Created
March 7, 2016 21:17
-
-
Save niltonvasques/648ae2474e0743869b05 to your computer and use it in GitHub Desktop.
Download SSL Certificate from Terminal
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
| #!/bin/bash | |
| # $1 - HOST | |
| echo -n | openssl s_client -connect $1:443 | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > /tmp/$1.cert |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment