General Security Concepts

A company hosts www.example.com, api.example.com and shop.example.com on separate servers and wants one certificate for all three. Which certificate should it request?

Show the answer

Correct answerC. A wildcard certificate for *.example.com

AWhy not this: A single-name certificate is valid only for www.example.com and leaves the other two hosts uncovered.

BWhy not this: A self-signed certificate for the bare domain does not cover the subdomains and is not trusted by browsers.

CWhy this is right: The * matches one subdomain label, so *.example.com covers www, api and shop with one certificate.

DWhy not this: A root CA certificate is a trust anchor for issuing certificates, not a server certificate for hosts.

A wildcard certificate for *.example.com is valid for any single-label subdomain, so one certificate covers all three hosts. A single-name certificate covers only the one name it was issued for.