Watch Explanation on YouTube
how to view website ssl certificate dns entires using openssl
Link URL : https://youtu.be/HF5iLlQ_hA8
- split DNS entries using new line
1
$ echo |openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -text | grep DNS:| sed "s/,/\\`echo -e '\n\r'`/g"
- split DNS entries using tr
1
$ echo |openssl s_client -connect google.com:443 2>/dev/null | openssl x509 -noout -text | grep DNS: | tr ',' '\012'