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
Copy your certificate and private key to the server. Any path readable by nginx works.
Edit
/etc/nginx/conf.d/energysoar.confand update the two directives:ssl_certificate /path/to/your/certificate.crt; ssl_certificate_key /path/to/your/private.key;
Test the nginx configuration:
# nginx -t
Reload nginx:
# systemctl reload nginx