Link to home
Start Free TrialLog in
Avatar of projects
projects

asked on

SSL cert when using www.domain.com and domain.com on same server

I hope this will make sense to you.

The primary web site on the server (centos7) is www.domain.com.
A secondary site is domain.com on the same server but NOT as an alias in the www.domain.com directives.
In other words, they are two separate servers.
Both are set up in the VirtualHost section of httpd.conf of apache 2.2.

The question is, how many SSL certs do I need to get to use both domain names?
Typically, when you get a cert, you give the full name of the server or domain.
In my case, the server name is something like x32.domain.com.

I would prefer not to have to buy two certs but it's ok if I do, the main concern is that I need SSL for both instances.

Finally, how do I set this up?
Avatar of jmcg
jmcg
Flag of United States of America image

I know that the free Class1 certs available at StartSSL.com automatically come with both domain.com and www.domain.com names, so what you're asking for is possible. It mainly depends on what your SSL certificate signer is willing to give you.

For somewhat more money, you can just get a "wildcard" cert for *.domain.com that will normally also include domain.com -- this kind of cert can usually be used on as many servers as you need.
ASKER CERTIFIED SOLUTION
Avatar of Graham N.
Graham N.
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial