Custom SSL Certificate

The installer generates a self-signed certificate valid for 365 days. Replace it with a CA-signed certificate before exposing the system to users.

Default certificate location

/etc/energysoar/ssl/nginx-selfsigned.crt
/etc/energysoar/ssl/nginx-selfsigned.key

Replace the certificate

  1. Copy your certificate and private key to the server. Any path readable by nginx works.

  2. Edit /etc/nginx/conf.d/energysoar.conf and update the two directives:

    ssl_certificate     /path/to/your/certificate.crt;
    ssl_certificate_key /path/to/your/private.key;
    
  3. Test the nginx configuration:

    # nginx -t
    
  4. Reload nginx:

    # systemctl reload nginx