Add small ssl cert viewer script

This commit is contained in:
Jan Philipp Timme 2017-05-28 17:44:00 +02:00
parent dc73cc76c2
commit 29dac9a391
1 changed files with 3 additions and 0 deletions

3
bin/view-cert.sh Executable file
View File

@ -0,0 +1,3 @@
#!/bin/bash
HOSTNAME=$1
echo | openssl s_client -servername $HOSTNAME -connect $HOSTNAME:443 2>/dev/null | openssl x509 -text