How to Install SolusVM Master SSL Certificate.
From SSH Terminal:
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:
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:
$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:
service lighttpd restart