I wrote this guide because i've seen that there are many people with problems like mine so let's go
When we get ssl certificate from for example xramp or other company which requires cabundle we do what follows :
INSTALLING SSL CERTIFICATE FOR CPANEL AND WHM :
Step one :
Go to
cd /usr/local/cpanel/etc/
cp cpanel.pem cpanel.pem.backup
Create a file called cpanel.pem which have inside the ssl certificate and ssl private key and copy it into this folder.
The certificate is still no valid because of incorrect ca so we do what follows :
cd /usr/local/cpanel/etc/
cp mycpanel.cabundle mycpanel.cabundle.backup
Rename SSLbundle.crt from xramp or any other ca file to mycpanel.cabundle and copy it to this folder
Do : service cpanel restart
If u get Starting SSL certificate [failed] go here
http://forums.cpanel.net/showthread....tarting+failed
And thats it now we have a working certificate for cpanel and WHM
INSTALLING SSL CERTIFICATE FOR POP AND SMTP
This was for me the hardest part because of errors and incompatibilities
Let's go :
For courier-imap users
First we will do pop3 certificate so
insert sslbundle.crt from xramp or other company into /etc/ssl/
copy your pem file which contains ssl certificate and key to /etc/ssl/private and name it ca.pem for example
Go to /usr/lib/courier-imap/etc
Edit file pop3d-ssl
Change that :
TLS_CERTIFICATE=/etc/ssl/private/ca.pem
TLS_TRUSTCERTS=/etc/ssl/sslbundle.crt
save and exit
Edit imapd-ssl
Change that :
TLS_CERTIFICATE=/etc/ssl/private/ca.pem
TLS_TRUSTCERTS=/etc/ssl/sslbundle.crt
Save and exit
now do :
service courier-imap restart
LAST THING EXIM
edit /etc/exim.conf
tls_certificate = /etc/exim.pem <- this file should be provided form xramp or any other company IMPORTANT chmod 644 /etc/exim.pem
tls_privatekey = /etc/exim.key <- this file should contain RSA PRIVATE KEY
And finally
service exim restart
We should have ssl on whole server
If you have any suggestions write it here !



LinkBack URL
About LinkBacks
Reply With Quote





