I'm about to purchase a SSL certificiate for a small website. Is it best practice to enter 'www.domainName.com' or 'domainName.com' for the common name?
相关问题
- Mechanize getting “Errno::ECONNRESET: Connection r
- Tomcat and SSL Client certificate
- Can we add four protocols to ServicePointManager.S
- .NET Core gives unknown error while processing HTT
- JDK 11. javax.net.ssl.SSLPeerUnverifiedException:
相关文章
- ssl配置问题
- Intermittent “sslv3 alert handshake failure” under
- Making a two way SSL authentication between apache
- decrypt TLS 1.2 AES-GCM packet
- How to use Jetty with Let's Encrypt certificat
- Sending email using php, gmail, and swiftmailer ca
- Can't pip install packages in python 3.6 due t
- How to disable tls 1.0 and use only tls 1.1 using
It must exactly match the URL that appears in the address bar of your website. If you allow visitors to access the site using both variations, then one of them will give a certificate error if the certificate is for the other.
Don't make the mistake of thinking you can avoid this by redirecting all accesses to a "canonical" format, for example redirecting example.com to www.example.com and have a certificate for www.example.com. As Mike points out in his comment, it won't work with https.
If you can't do that, you can use a wildcard certificate with a "Subject Alternative Name" to have it apply to both.
Maybe see this question on serverfault.com: How to install a single SSL certificate for www and non-www
Make sure you use the
subjectAltName
field, and include all variations of the hostname(s) you want to use, or a wildcard if you aren't sure what all the variations will be. The common name (CN) is only used as a backup. See RFC 2818 for more details: