Web Hosting Talk







View Full Version : SSL Cert Install in WHM/CPanel


TheRazor
10-12-2001, 03:01 PM
I know it has been posted before but I just can't get it to work with the examples I have seen. Can someone who has a cert installed on a stock whm/cpanel install show me the way?

I am waiting for my return from EquifaxSecure (GeoTrust) to come back. So I wanted to install an usigned cert in the mean time. So here is a laundry list of questions I have.

in httpd.conf

1) i have a domain create yourcompany.com with ip 111.111.111.112, do i install it with that ip or with ip of my server which is 111.111.111.111

2)under servername do i put yourcompany.com or secure.yourcompany.com (which would be what I submitted to ef)

3)do I have to use port 443 or do i not use a port at all?

If someone can shed some light or evern give me a copy of the <if definessl> section of their httpd.conf (xxx'ing out your pertinent info if you like)

And a little more heads up I am rushing cause I just got modernbill so I am trying get that up asap so any info on setups with that would be cool as well (as far as whm/cpanel is concerned).

Thanks in advance all...

Palm
10-12-2001, 09:32 PM
Have you tried to install the certificate through webhosting manager?

Here is how a httpd.conf entry will look like for an installed certificate on the domain name.

<VirtualHost 5.5.5.5:443>
ServerAdmin webmaster@www.domain.com
DocumentRoot /home/user/public_html
#BytesLog domlogs/domain.com-bytes_log
BytesLog domlogs/domain.com-bytes_log
ServerName www.domain.com

CustomLog /usr/local/apache/domlogs/www.domain.com-ssl_log "%t %{version}c %{cipher}c %{clientcert}c"

SSLVerifyClient none
SSLEnable

SSLCertificateFile /etc/ssl/certs/www.domain.com.crt
SSLCertificateKeyFile /etc/ssl/private/www.domain.com.key
SSLLogFile /var/log/www.domain.com
UserDir public_html
</VirtualHost>

The Apache directives look like simple english.

TheRazor
10-13-2001, 10:17 AM
Thanks for responding Palm. I found the problem wasn't my configuration it was the way I was restarting apache. I was using whm to restart apache after the changes and everything was crashing because whm was not starting ssl. After I did a manual stop, ssl start, and finally an apache restart everything was fine.

Now my question is will this always be the case now that I have ssl setup and running, will I have to always have to restart apache through the command line do get everything going? Any responses would be appreciated.