Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to list all domains on an SAN/UCC SSL Certificate (ideally using command line on linux/os x)?

Clearly there must be some way to extract the data, since browsers can do it. Unfortunately, I can see the list but can't cut and paste it.

share|improve this question
up vote 5 down vote accepted

openssl x509 -text < foo.crt should do the trick.

share|improve this answer
For posterity, this is the full command I used, since I was doing it for another server: openssl s_client -showcerts -connect | openssl x509 -text – Jordan Reiter Sep 10 '12 at 13:39

You can list the domains with this command (tested on linux):

cat cert.pem | openssl x509 -text | grep DNS
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.