Posts Openssl view website ssl certificate dns entries
Post
Cancel

Openssl view website ssl certificate dns entries

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'
This post is licensed under CC BY 4.0 by the author.