How to install SSL for SolusVM 2 Management server hostname?

Question

How to install SSL for SolusVM 2 Management server hostname?

Answer

  1. SSH to SolusVM 2 Management server and find solus_nginx container ID:

# docker ps --format '{{ .ID }}' -f name=solus_nginx

Example output:

# b1cb783dac96

  1. Open the shell of the container:

# docker exec -ti b1cb783dac96 sh

  1. 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/)

  1. 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"

  1. Reload the Nginx service:

# nginx -s reload

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.