Question
How to install SSL for SolusVM 2 Management server hostname?
Answer
- SSH to SolusVM 2 Management server and find solus_nginx container ID:
# docker ps --format '{{ .ID }}' -f name=solus_nginx
Example output:
# b1cb783dac96
- Open the shell of the container:
# docker exec -ti b1cb783dac96 sh
- Run the command to issue a certificate:
# /bin/installer -letsencrypt -domain your.domain.com -email admin@admin.com -http-port 5080 -out-cert /etc/nginx/certs/cert.crt -out-priv /etc/nginx/certs/priv.key
Where:
-
your.domain.com - the domain used to access SolusVM 2 UI,
-
admin@admin.com - an administrator contact email,
-
out-cert and out-priv - paths to a certificate in the nginx container(in the host system is a /usr/local/solus/certs/)
- Ensure the certificate is issued properly:
# openssl x509 -in /etc/nginx/certs/cert.crt -noout -text |grep "Issuer"
Issuer must be "C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3"
- Reload the Nginx service:
# nginx -s reload
Comments
0 commentsPlease sign in to leave a comment.