问题原文
原帖链接 · Zeep · CC BY-SA 4.0
We want to use a SAN SSL certificate for the following domains:
- example.com (common name)
- abc.example.com
- def.example.com
- www.abc.example.com
- www.def.example.com
When creating the CSR for this certificate, do I have to enter all these hostnames (beside the Common Name) into the Subject Alternative Names section? Is it required? Or can I leave them empty and only fill out the Common Name?
How do these SAN entries eventually get into the SSL certificate? Is this through the CSR (if they've been provided) or can a certificate provider add them during the generation process, and thus the SANs are not required in the CSR?
已采纳解答
原帖链接 · Sam Erde · CC BY-SA 4.0
Yes, you need to include each of the subject alternate names and the subject/common name in the Subject Alternate Names section of the CSR. Some certificate authorities will allow you to update a certificate to add new SANs to it, but this always requires an updated CSR.
DigiCert is a fantastic CA to use, and here are their instructions for adding a SAN to a certificate.
To add SANs to a certificate, you must generate a new CSR on your server, and then submit the CSR in your account. If you need instructions for creating the CSR, see our Create a CSR (Certificate Signing Request) page.
The full instructions are here: https://www.digicert.com/multi-domain-add-subject-alternative-names.htm.
How you create your initial CSR will vary depending on what platform you are creating and using the certificate on.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
