Created
August 24, 2016 21:28
-
-
Save florin-andrei-curbside/c03015478d3a067bf318262559080d80 to your computer and use it in GitHub Desktop.
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
#!/usr/bin/env bash | |
(for dom in `openssl x509 -in cert.pem -text -noout | grep DNS`; do | |
echo ${dom} | cut -d : -f 2 | cut -d , -f 1 | |
done) | sort |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment