Install SolusVM Master SSL Certificate
Without an SSL Certificate on your SolusVM Master, your clients will receive security warnings about a self-signed SSL Certificate when they come to log in to the control panel. This can cause some confusion and looks unprofessional. Here we will show you how to install an SSL on your SolusVM Master using Let’s Encrypt.
The process is simple and can be completed in a few minutes but, before we start you need to ensure you have a valid A record for your hostname. This means your hostname should resolve to your IP. If it does not you will not be able to request an SSL certificate for your hostname. We’re going to use the Acme script located at https://github.com/Neilpang/get.acme.sh
Step One – Install Acme
curl https://get.acme.sh | sh
or
wget -O - https://get.acme.sh | sh
This will also set up a cronjob to renew any certificates. You can double-check the crontab -e page to ensure the cron job has been set up. The cronjob should be
0 0 * * * "/home/user/.acme.sh"/acme.sh --cron --home "/home/user/.acme.sh" > /dev/null
Now, close your SSH console and login to your SolusVM master again. This step is very important.
Step 2 – Request an SSL
Move to the Acme directory;
cd /root/.acme.sh/
Issue the below command switching server.yourdomain.com for the hostname of your SolusVM Master. Remember your hostname should always be an FQDM.
sh acme.sh --issue -d server.yourdomain.com \
-w /usr/local/solusvm/www/.verification
Step 3 – Install Your SolusVM Master SSL Certificate
Just issue the below command switching server.yourdomain.com for the hostname you used above
sh acme.sh --installcert -d server.yourdomain.com \
--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"
You will have a working SSL certificate on your SolusVM Master and any security warnings will now disappear.
How Was this Article? – How To Install A SolusVM Master SSL Certificate
You might also like
More from SolusVM
How to automatically setup additional IPs In your KVM VPS
If you reinstall your VPS server and your using a KVM solution plus you have additional IPs attached to your …
How to update your VPS Server root password
How to update your VPS Server root password If you want to update the root/admin password of your VPS server we …