Created
February 2, 2024 18:47
-
-
Save wdhowe/a93d539e34debac50cabd82ac0fd5ce6 to your computer and use it in GitHub Desktop.
Certificate View from the Shell
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
#!/bin/bash | |
url=$1 | |
echo | \ | |
openssl s_client -showcerts -servername ${url} -connect ${url}:443 2>/dev/null | \ | |
openssl x509 -inform pem -noout -text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment