Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to Install SolusVM Master SSL Certificate.  (Read 10705 times)

0 Members and 1 Guest are viewing this topic.

Aby

  • Guest
How to Install SolusVM Master SSL Certificate.
« on: July 24, 2014, 02:56:39 pm »
How to Install SolusVM Master SSL Certificate.

From SSH Terminal:

Code: [Select]
cd /usr/local/solusvm/ssl
openssl genrsa -out solusvm.key 2048
openssl req -new -nodes -key solusvm.key -out solusvm.csr

When ordering your certificate be sure to select 'Apache' as your server type.

When you receive the certificate, rename it to 'solusvm.cer' and upload it to /usr/local/solusvm/ssl. If your provider also supplied a CA Bundle or Chain File upload these too but take a note of their file names.
We need to create the appropriate .pem file required by lighttpd:

Code: [Select]
cd /usr/local/solusvm/ssl/; cat solusvm.key solusvm.cer > solusvm.pem
Now we edit the lighttpd.conf file and point it to our new .pem file and certificate:

Enter to lighttpd.conf:
Code: [Select]
$SERVER["socket"] == ":5656" {
 ssl.engine = "enable"
 ssl.pemfile = "/usr/local/solusvm/ssl/solusvm.pem"
 ssl.ca-file = "/usr/local/solusvm/ssl/gd_bundle.crt"
}
Note: If you have changed the ports for your SolusVM Master you will need to specify the certificate location for these too.

Save the configuration file and restart lighttpd:
Code: [Select]
service lighttpd restart