dotfiles/bin/view-cert.sh

4 lines
126 B
Bash
Raw Normal View History

2017-05-28 17:44:00 +02:00
#!/bin/bash
HOSTNAME=$1
echo | openssl s_client -servername $HOSTNAME -connect $HOSTNAME:443 2>/dev/null | openssl x509 -text