Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save florin-andrei-curbside/c03015478d3a067bf318262559080d80 to your computer and use it in GitHub Desktop.
Save florin-andrei-curbside/c03015478d3a067bf318262559080d80 to your computer and use it in GitHub Desktop.
#!/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