Skip to content

Deploy ssl to SolusVM

lmcro edited this page Jan 21, 2017 · 2 revisions

1. SolusVM master with nginx stack:

First of all, install as described in the documentation.

1) Issue your certificate: will try to validate your domain over http connection. That means the docroot is /usr/local/solusvm/www/.verification. Please check if you have this folder, else you can use /usr/local/solusvm/www as your docroot. --issue -d \
-w /usr/local/solusvm/www/.verification

Chenge '' with your SolusVM master domain name. Remember you can add multiple domains (SANs) to your certificate using the -d option. Please check wiki on how to do it.

1) Install the issued certificate to your SolusVM master: --installcert -d \
--keypath /usr/local/svmstack/nginx/ssl/ssl.key \
--fullchainpath /usr/local/svmstack/nginx/ssl/ssl.crt \
--reloadcmd "service svmstack-nginx restart; \
/usr/local/svmstack/sshwebsocket/quit; \
/usr/local/svmstack/sshwebsocket/port_check; \
cd /usr/local/svmstack/nginx/ssl && cat ssl.key ssl.crt > ssl.pem"

This command will install the fullchain and the private key to /usr/local/svmstack/nginx/ssl/. After that, it will restart the web server, restart sshwebsocket (used for HTML5 console) and then generate the ssl.pem file needed for novnc websockify.

2. SolusVM master with lighttpd stack:


You can’t perform that action at this time.