Skip to content

Instantly share code, notes, and snippets.

Last active Jun 6, 2021
What would you like to do?
SSL Certificate Display
#!/usr/bin/env bash
# ./ <host>
# Via:
if [[ "X${host_name}" = "X" ]]; then
echo "./ <host>"
echo "This script is display the SSL pem list"
exit 1;
echo | openssl s_client -showcerts -servername "${host_name}" -connect "${host_name}: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