I just received my “Let’s Encrypt certificate expiration notice” and tried to renew my certificate. I have read 20+ forum threads and “googled” how to solve this to no avail.
My system is:
uname -a
Linux homeserver 4.4.50-v7+ #970 SMP Mon Feb 20 19:18:29 GMT 2017 armv7l GNU/Linux
/usr/sbin/apache2 -v
Server version: Apache/2.4.10 (Raspbian)
Server built: Sep 17 2016 16:40:43
The commands I ran are:
pi@homeserver:/etc/letsencrypt $ certbot renew --dry-run
-bash: certbot: command not found
pi@homeserver:/etc/letsencrypt $./letsencrypt-auto --apache -d 3butz.com -d www.3butz.com
-bash: ./letsencrypt-auto: No such file or directory
The error is consistently “No such file or directory”. What do I need to renew my certs.
All of these instructions depend on how Certbot was installed and, as @Osiris indicates, they’re assuming that you’re running Certbot the same way that it was originally run to obtain the certificate.
There are many alternatives to Certbot. If someone else obtained the certificate for you, it’s possible that they didn’t use Certbot at all. In that case, none of the online examples that use Certbot will apply to your situation!
Thanks @Osiris@schoen for the reply. That said, how do I renew or remove & reissue my certs. I can not remember how I initially installed them, I believe it was through certbox, but can’t be certain.
The way to renew the certificates is totally different depending on how you originally obtained and installed them.
To check whether you used Certbot, you can try running the command
ls /etc/letsencrypt
On a system where Certbot has been used to obtains certificates, you should see output beginning with accounts. On a system where Certbot has never been used, you should see an error message like ls: cannot access /etc/letsencrypt: No such file or directory.
@schoen, thanks it looks like I did use certbox because I have the “accounts” folder. Now, what is the process to renew my cert. I ha e already used the: certbot renew --dry-run command but recieved the error “bash: certbot: command not found”
You need to call certbot-auto twice because it needs to download packages and ask for your email etc. on the first run and would not actually get your certificates.
For NTC CHIP, you can get Certbot from the beta repository, which doesn’t seem to work on Raspberry Pi. Also, Certbot will brick NTC CHIP if Apache is set to auto-start. I wiped the server 3 times to finally figure it out DX
Run this to prevent Apache from auto-starting: sudo systemctl disable apache2
The commands that @jspenguin2017 suggested will re-download certbot-auto, which is fine if you want to do that. If you’d like to find your existing copy, you can try locate certbot and see what the output looks like.
Different people have different ways of running Certbot because they have installed it in different ways and in different locations on their system. The form ./certbot-auto, for example, means to run it from the current directory, which only works when you’re in the same directory where it was installed.
@schoen, I want to make sure I get this right. locate certbot produced this output:
“pi@homeserver:~ $ locate certbot
/etc/letsencrypt/csr/0000_csr-certbot.pem”
So that tells me certbot is installed. What is the process now to renew the certificate, run “certbot renew --dry-run”? If so, from what directory, because " “pi@homeserver:/etc/letsencrypt $ certbot renew --dry-run” doesn’t work.