Keywords: Nginx - AWS - Technical issue - Connectivity (SSH/FTP)
bnsupport ID: 1ff7a1f6-3b4c-3ab8-31ec-b6c1788d24e1
Description:
I tried to set up SSL certs following this tutorial: https://docs.bitnami.com/general/how-to/generate-install-lets-encrypt-ssl/#alternative-approach
Unfortunately this hasn't worked and has stopped NGINX, and therefore the website, from running. Whenever I try to restart Nginx or run commands to fix it such as
sudo mv /opt/bitnami/nginx/conf/server.crt.old /opt/bitnami/nginx/conf/server.crt
sudo mv /opt/bitnami/nginx/conf/server.key.old /opt/bitnami/nginx/conf/server.key
sudo mv /opt/bitnami/nginx/conf/server.csr.old /opt/bitnami/nginx/conf/server.csr
sudo /opt/bitnami/ctlscript.sh restart
it doesn't work and the error message is
nginx: [emerg] cannot load certificate "/opt/bitnami/nginx/conf/server.crt": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/opt/bitnami/nginx/conf/server.crt','r') error:2006D080:BIO routines:BIO_new_file:no such file)
Is there a way to reset this and then start again with configuring the BNcert tool?
Thanks