List SAN domains for a certificate

echo | openssl s_client -connect google.com:443 2>&1 | openssl x509 -noout -text | awk -F, -v OFS="\n" '/DNS:/{x=gsub(/ *DNS:/, ""); $1=$1; print $0}'
List SAN Domains for a certificate
Sample Output
*.google.com
*.android.com
*.appengine.google.com
*.cloud.google.com
*.crowdsource.google.com
*.g.co
*.gcp.gvt2.com
*.gcpcdn.gvt1.com
*.ggpht.cn
*.gkecnapps.cn
*.google-analytics.com
*.google.ca
*.google.cl
*.google.co.in
*.google.co.jp
*.google.co.uk
*.google.com.ar
*.google.com.au
*.google.com.br
*.google.com.co
*.google.com.mx
*.google.com.tr
*.google.com.vn
*.google.de
*.google.es
*.google.fr
*.google.hu
*.google.it
*.google.nl
*.google.pl
*.google.pt
*.googleadapis.com
*.googleapis.cn
*.googlecnapps.cn
*.googlecommerce.com
*.googlevideo.com
*.gstatic.cn
*.gstatic.com
*.gstaticcnapps.cn
*.gvt1.com
*.gvt2.com
*.metric.gstatic.com
*.urchin.com
*.url.google.com
*.wear.gkecnapps.cn
*.youtube-nocookie.com
*.youtube.com
*.youtubeeducation.com
*.youtubekids.com
*.yt.be
*.ytimg.com
android.clients.google.com
android.com
developer.android.google.cn
developers.android.google.cn
g.co
ggpht.cn
gkecnapps.cn
goo.gl
google-analytics.com
google.com
googlecnapps.cn
googlecommerce.com
source.android.google.cn
urchin.com
www.goo.gl
youtu.be
youtube.com
youtubeeducation.com
youtubekids.com
yt.be

0
By: shadyabhi
2020-04-10 06:56:51

What Others Think

[Nice](https://www.commandlinefu.com/)
samuelddarden · 45 weeks ago
google [url=https://google.com/]google[/url]
samuelddarden · 45 weeks ago
The information is worth thinking over. I am really thankful to you for posting this blog. Ghd sports APK
GHDSPORTSAPK · 43 weeks and 2 days ago
I don't know what actually it is. It was very difficult for me to know about this. I have read this so many times. Can you please help me with this. If you can explain it then it will be easy for me to follow the code. cbd oil
zaiyamariya · 25 weeks and 6 days ago
It's got too much controversy, but that's a good thing. run 3
diankale · 25 weeks and 1 day ago
great content! will recommend this site to my friends breast implants baton rouge cost
looneyhans · 17 weeks and 6 days ago
It will be very useful for you to share this with us, thank you. basketball games
ebonyajohnson · 16 weeks and 3 days ago
thanks for ths countertopsspokane.com
looneyhans · 13 weeks and 2 days ago
very helpful and nice! weddingphotographerslincolnne.com
Killersmile · 12 weeks and 6 days ago
I can't help but tell you about the most useful website in the world https://askboosters.com/, which has helped me out more than once, as I wanted to urgently pump my rating in my favorite video game.
Conch · 12 weeks and 3 days ago
wow! love it! you really are the best! laser hair removal
idasanka · 8 weeks and 5 days ago
house cleaning jacksonville fl I am amazed by the way you have explained things in this article. This article is quite interesting and I am looking forward to reading more of your posts. Thanks for sharing this article with us.
yeoyeo · 7 weeks ago
approaches to remain productive and strain-unfastened in the course of this confusing time. finding the right skills to your startup might be easier with those proven hiring guidelines.  voip phone service
newsreviewnet · 6 weeks and 4 days ago
All the faces in the world are mirrors. What kind of reflections do you see in the faces of the people you meet? voip phone system service provider
giaome · 6 weeks and 2 days ago
thank you for this! really appreciate you doing this pray
sammm · 3 weeks and 6 days ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: