I generated my SSL from SSLforFree/ZeroSSL, and according to the steps for installation listed on their website, https://zerossl.com/help/installation/nginx/
- Downloaded the SSL Files
- Moved them to the Server
- Merged the certificate.crt & ca_bundle.crt with (
cat certificate.crt ca_bundle.crt >> certificate.crt
) - Added following lines in the hosts file of nginx:
ssl on;
ssl_certificate /etc/ssl/certificate.crt;
ssl_certificate_key /etc/ssl/private.key;
- Restarted Nginx Server with (
sudo service nginx restart
) - Error received, and checked the error details by (
journalctl -xe
) - Error was:
nginx: [emerg] PEM_read_bio_X509_AUX
(SSL: error:0908F066:PEM routines:get_header_and_data:bad end line)