Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I obtained a free CA certificate from https://www.startssl.com/.

I added the domain name example.com, and in the control panel, it shows www.example.com under SSL/TLS Server, and example.com under Domain Validations.

I configured Apache (running on Centos) per the instructions, and can access https://example.com/ without a "Untrusted Connection" warning, but when accessing https://www.example.com/, I get the warning.

How can I either rewrite https://www.example.com/ to https://example.com/, or configure the certificate to also work with http://example.com/?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You were meant to obtain an SSL certificate for www.example.com, not example.com.

Add subdomain in StartSSL certificates wizard

When you do this, StartSSL will give you a certificate that works for both hostnames.

Ready to create certificate

share|improve this answer
    
Thanks Michael. My only domain listed is example.com, and it displays Select the top target domain name for your certificate.. Do I need to validate www.example.com? When attempting to do so, it says I cannot validate a subdomain. –  user1032531 May 26 at 13:29
    
You should have already validated your domain. I'm talking about obtaining the SSL certificate! –  Michael Hampton May 26 at 13:35
    
I validated example.com. I requested a certificate for example.com. When proceeding, it states You must add one sub domain to this certificate. The base domain example.com will be included by default in the Alt Name section.. I entered www.example.com. But www.example.com results in the warning. –  user1032531 May 26 at 13:38
    
I assume rewriting is not an option for me since the user will get the warning before it hits my server, right –  user1032531 May 26 at 13:40
    
What warning are you talking about now? –  Michael Hampton May 26 at 13:49

Your Answer

 
discard

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.