Keywords: WordPress + NGINX + SSL - AWS - Technical issue - Secure Connections (SSL/HTTPS)
bnsupport ID: 02001002
Initially tried to use bncert-tool but realized it does not work on NGINX servers.
Therefore, followed the alternative approach mentioned in the link below.
Then i used approach A for NGINX .
Then i got an error running this command,
sudo mv /opt/bitnami/nginx/conf/bitnami/certs/server.csr /opt/bitnami/nginx/conf/bitnami/certs/server.csr.old
However, I was able to run the rest of the codes and complete the process. However, once everything is done, tried to restart the server using the command below and it did not work.
sudo /opt/bitnami/ctlscript.sh start
Instead, I was able to find a solution for that in one of your threads and restarted the server.
Now, I cannot access my website as it refused to connect.
You can find bnsupport tool outputs below.
===== Begin of bndiagnostic tool output =====
? Nginx: Found possible issues ? Mariadb: Found possible issues ? Connectivity: Found possible issues ✓ Wordpress: No issues found ? Resources: Found possible issues ✓ Php: No issues found
Found recent error or warning messages in the Nginx error log.
2021/06/03 13:53:25 [emerg] 1129#1129: cannot load certificate key "/opt/bitnami/nginx/conf/bitnami/certs/server.key": BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen('/opt/bitnami/nginx/conf/bitnami/certs/server.key','r') error:2006D080:BIO routines:BIO_new_file:no such file) 2021/06/03 14:04:52 [emerg] 1648#1648: cannot load certificate "/opt/bitnami/nginx/conf/bitnami/certs/server.crt": BIO_new_file() failed (SSL: Press [Enter] to continue: PLEASE HELP.