shoxf/gc

8 lines
119 B
Plaintext
Raw Normal View History

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