My domain is: monpetitchouphotography.com
I ran this command:
./certbot-auto renew
It produced this output:
Requesting root privileges to run certbot...
/home/bitnami/.local/share/letsencrypt/bin/letsencrypt renew
Saving debug log to /var/log/letsencrypt/letsencrypt.log
-------------------------------------------------------------------------------
Processing /etc/letsencrypt/renewal/monpetitchouphotography.com.conf
-------------------------------------------------------------------------------
Cert is due for renewal, auto-renewing...
Renewing an existing certificate
Performing the following challenges:
http-01 challenge for monpetitchouphotography.com
Waiting for verification...
Cleaning up challenges
Generating key (2048 bits): /etc/letsencrypt/keys/0003_key-certbot.pem
Creating CSR: /etc/letsencrypt/csr/0003_csr-certbot.pem
-------------------------------------------------------------------------------
new certificate deployed without reload, fullchain is
/etc/letsencrypt/live/monpetitchouphotography.com/fullchain.pem
-------------------------------------------------------------------------------
Congratulations, all renewals succeeded. The following certs have been renewed:
/etc/letsencrypt/live/monpetitchouphotography.com/fullchain.pem (success)
I ran the command a second time (as root instead) because it didn’t appear to update on the website and got a long list of feedback, ending with:
-------------------------------------------------------------------------------
Processing /etc/letsencrypt/renewal/monpetitchouphotography.com.conf
-------------------------------------------------------------------------------
Cert not yet due for renewal
The following certs are not due for renewal yet:
/etc/letsencrypt/live/monpetitchouphotography.com/fullchain.pem (skipped)
No renewals were attempted.
My operating system is (include version): Not sure…
My web server is (include version): Apache
My hosting provider, if applicable, is: Amazon EC2 instance
I can login to a root shell on my machine (yes or no, or I don’t know): Yes, I did
sudo su root
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): No.
I restarted apache using:
sudo /opt/bitnami/ctlscript.sh restart apache
and it still didn’t help.
I also used this command to see what was in the file, as per the other forums threads that I saw:
openssl x509 -in /etc/letsencrypt/live/monpetitchouphotography.com/cert.pem -text -noout
And I got this (among other things):
Validity
Not Before: Feb 15 20:05:00 2017 GMT
Not After : May 16 20:05:00 2017 GMT
The first time I ran the command, when I wasn’t root, I got an error. So now I know for sure it’s been updated but when I check the website, or any other those SSL certificate checkers, the expiration date still says March 7th.
I saw a post about having to restart nginx but I tried a few different restart commands that I found online and none of them worked.