WildWayz

Well-Known Member
Aug 14, 2001
209
0
316
Hi ya

What is the exact instructions on how to add an SSL certificate?
I have a client who has a dedicated IP and wants the SSL cert for
ssl.domain.com.
When I add it via WHM, Apache falls over and won't start again until I edit httpd.conf and delete the entry.

Soooo what is the exact process from making the subdomain to adding it?

Thanks

James
 

Stephen

Active Member
Aug 14, 2001
39
1
308
from those entries you see something like

SSLCertificateFile /usr/share/ssl/certs/DOMAIN.COM.crt
SSLCertificateKeyFile /usr/share/ssl/private/DOMAIN.COM.key

put the certificate in /usr/share/ssl/certs/DOMAIN.COM.crt
put the key in /usr/share/ssl/private/DOMAIN.COM.key

stop apache: /usr/local/apache/bin/apachectl stop
then /usr/local/apache/bin/apachectl startssl
 

WildWayz

Well-Known Member
Aug 14, 2001
209
0
316
so the .crt and .key are uploaded by me? or does WHM create them and all I have to do is move them?

James
 

Stephen

Active Member
Aug 14, 2001
39
1
308
I did this quiet long time ago. You just need to make sure you have the right certificate at
/usr/share/ssl/certs/domain.com.crt
or wherever is listed in httpd.conf

and key at
/usr/share/ssl/private/domain.com.key

What I did was I emptied /usr/share/ssl/certs/domain.com.crt then filed it with my certificate, same for the key then restart apache ssl then it will work.
 

First Faze

Well-Known Member
Jan 30, 2002
47
0
306
I don't know if this helps anyone but I kept on trying to add SSL certs and it would work fine but after a couple of restarts to httpd it would start to fail loading and I simply added an &Ifdefine SSL& &/Ifdefine& around the SSL vhost directive and everything works great now!