As you can see, it says there that it auto-renews but today one of my websites did not renew and it’s ssl certificates expired. now to prevent my other websites’ ssl from expiring I will just do it manually. However, I can’t find my certbot-auto file to do the command. The /tmp/certbot folder is gone for some reason and the /etc/letsencrypt does not have certbot-auto file.
Oddly enough, my other websites, still does have the /tmp/certbot folder and 1 has the certbot-auto file inside /etc/letsencrypt
I ran this command: cd /etc/letsencrypt/ && ./certbot-auto renew && /opt/bitnami/ctlscript.sh restart
also this
cd /tmp/certbot/
./certbot-auto renew --dry-run
It produced this output: -bash: ./certbot-auto: No such file or directory
My web server is (include version): i use google cloud platform compute engine
The operating system my web server runs on is (include version): Debian 4.9.110-3+deb9u5 (2018-09-30) x86_64
My hosting provider, if applicable, is: google cloud platform
I can login to a root shell on my machine (yes or no, or I don’t know): yes that’s where i type the commands
I’m using a control panel to manage my site (no, or provide the name and version of the control panel): no
also i know the basics only so i apologize if i dont understand a lot of the stuff. the documentation also confused me and i just followed the onepagezen tutorial.
It is a bad idea to left software in /tmp folder, I suppose your O.S. has some cron job, systemd timer to clean /tmp folder periodically, or maybe another process removed it, anyway, you should install certbot-auto again in another folder and modify your cron job.
Since you have already got things working before with certbot-auto, you could simply reinstall the certbot-auto again (but not under /tmp/) and run ./certbot-auto renew when it's done.
You should be able to use ./certbot-auto renew to renew the certificate since the configuration files under /etc/letsencrypt/ normally are not deleted even though certbot-auto installed under /tmp/ is removed.
I don't think so, but just in case, please make a copy to /etc/letsencrypt/ directory before you reinstall certbot-auto.
thank you it works! however, what about the website that has the ssl expired. i installed certbot and i executed ./certbot-auto renew . i checked the expiry date and it changed so my certificate was “renewed” on th eexpired ssl website but it still gives me an http connection. how do i put it back to https? i assume the website still thinks i havent renewed it despite certbot renewing it.
Could you please locate that domain’s apache / nginx SSL virtual host configuration file and check if the SSLcertificate path is pointed to the correct folder under letsencrypt certificate folders?
is this nano /opt/bitnami/apache2/conf/bitnami/bitnami.conf it?
i put this code months ago
SSLCertificateFile “/etc/letsencrypt/live/gamepow.co/cert.pem”
SSLCertificateKeyFile “/etc/letsencrypt/live/gamepow.co/privkey.pem”
SSLCertificateChainFile “/etc/letsencrypt/live/gamepow.co/chain.pem”
and this
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]
oh for some reason it didnt show up properly on incognito. anyway, i loaded it up on the non incognito and it worked! thank you guys so much! i learned a lot!