Skip to content

Instantly share code, notes, and snippets.

@wdhowe
Created February 2, 2024 18:47
Show Gist options
  • Save wdhowe/a93d539e34debac50cabd82ac0fd5ce6 to your computer and use it in GitHub Desktop.
Save wdhowe/a93d539e34debac50cabd82ac0fd5ce6 to your computer and use it in GitHub Desktop.
Certificate View from the Shell
#!/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