Keywords: WordPress + NGINX + SSL - Linux - Technical issue - Secure Connections (SSL/HTTPS) Description: Hi,
some days ago I succesfully created a certificate with lego (letsencrypt) for
I was using a combination of tutorials:
https://docs.bitnami.com/virtual-machine/apps/wordpress-pro/#how-to-configure-the-auto-renewal-process-of-the-certificates AND https://docs.bitnami.com/aws/how-to/generate-install-lets-encrypt-ssl/
All went fine. But now I want to also have a certificate for:
So I executed the command:
sudo /opt/bitnami/letsencrypt/lego --email="firstname.lastname@example.org" --domains="www.my-domain.com" --domains="my-domain.com" --path="/opt/bitnami/letsencrypt" run
Now I can find the relevant certificate files in the folder:
However now I don't understand what to do. I have tried these commands (similar steps that I executed when creating the first certificate for
sudo /opt/bitnami/ctlscript.sh stop
sudo /opt/bitnami/letsencrypt/lego --email="email@example.com" --domains="www.my-domain.com" --domains="my-domain.com" --path="/opt/bitnami/letsencrypt" run sudo mv /opt/bitnami/nginx/conf/server.crt /opt/bitnami/nginx/conf/server.crt.old sudo mv /opt/bitnami/nginx/conf/server.key /opt/bitnami/nginx/conf/server.key.old (sudo mv /opt/bitnami/nginx/conf/server.csr /opt/bitnami/nginx/conf/server.csr.old) sudo –i cd /opt/bitnami/letsencrypt/certificates sudo ln -s /opt/bitnami/letsencrypt/certificates/www.my-domain.com.key /opt/bitnami/nginx/conf/server.key sudo ln -s /opt/bitnami/letsencrypt/certificates/www.my-domain.com.crt /opt/bitnami/nginx/conf/server.crt sudo /opt/bitnami/ctlscript.sh start
But then nginx does not start anymore and exits with an error. So I reversed the mv steps and nginx started again. But therfore I still only have
www.my-domain.com with a valid certificate. But not
my-domain.com --> this is showing "invalid certificate" in my browser.
Many thanks for your help.
PS: While searching for this post I stumbled over this post:
We just detected an issue in the cron configuration for the lego tool we include in this Bitnami solution. This cron job takes care of renewing the SSL certificates monthly.
We also want to inform you that this issue only affects users who have configured a cron job in their instances either using
the generate-certificate.sh script bundled inside the WordPress with NGINX solution or following our documentation to install lego in a running instance. Our documentation has already been upd…
and corrected the cron tab accordingly.
Any help to get my-domain.com with a valid certificate as well is very welcome.