shoxf/gc

8 lines
119 B
Bash
Executable File

#!/bin/sh
# thanks jess
echo "Q" | timeout 5 openssl s_client -connect $1:$2 2>&1 | grep -E "^(subject|issuer)=.+"