Score:1

How can I tell if an installed cert is wildcard or not

fr flag

I installed a cert for my server a while ago using certbot, and cant remember if I setup as a wildcard or not, What command can I run to see if it is or not?

Massimo avatar
ng flag
Which server, exactly?
fr flag
An apache webserver I am running.
Score:1
gb flag

If you run (replacing www.example.com with your own hostname)

SERVERNAME=www.example.com; echo | openssl s_client -showcerts -connect $SERVERNAME:443 -servername $SERVERNAME 2>/dev/null| grep subject | grep -o "CN=.*"

then you'll either see CN=www.example.org (no wildcard) or CN=*.example.org (a wildcard cert)

fr flag
IF you are feelign saucy, please see my next question at: https://serverfault.com/questions/1101249/certbot-wildcard-cert-not-a-wildcard
gb flag
Yup! Just did :)
fr flag
you are my guardian angel today! thanks a ton for both
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.