I am sorry to interrupt you. I am pretty new to server and also to letsencrypt. I got access to a very old server and wanted to renew the letsencrypt certifiactes, which ran out. But when i try to run the well know commands all i get is the same output below. I hope someone can get my some hints or provide me further more information to solve this problem. I am very thankful in advance for your patience
I ran this command:
certbot -renew
letsencrypt -renew
It produced this output:
bash: letsencrypt: command not found
My web server is (include version):
apache? dont know exactly where i can look this up
The operating system my web server runs on is (include version):
Debian 7
I can login to a root shell on my machine (yes or no, or I don’t know):
yes
I’m using a control panel to manage my site (no, or provide the name and version of the control panel):
no
The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):
cant get the version. i can see there are files in etc/letsencrypt. But also there none of the commands work.
Maybe you could try history | egrep 'certbot|letsencrypt' to see what command you ran before, if you don't remember?
It's very possible that you're using certbot-auto, which is an auto-downloaded version of Certbot that we create for operating systems that don't ship a current version of Certbot. In that case, the commands you would use would be slightly different and would also depend on where you downloaded and saved certbot-auto.
Thanks for your quick help. I tried history but i just see the last 20 commands with this words. Starting on line 496 with “letsencrypt” and nothing else
after that there are just my commands where i tried to find the installation directory and all variations of letsencrypt with renew.
Do you have any other hints for me?
Just to be clear. I am also very new to all that things like server and letsencrypt. So i didnt install it and i never renewed the certifiactes for that server. I thouhgt this woudl be an easy way. Just fire 2 commands and im done… well so i thought.
Well I did not install this server. I just got access to that server and my task is to renew that certificate. By that way I want to learn more about letsencrypt and servers.
As you probably know Debian 7 went out of support in may 2018, you should probably update to Debian 8 or 9.
Most certainly the version of certbot that shipped with Debian 7 is no longer supported. This is even the case for the Debian 8 version, therefor they have backported the current certbot to Debian 8.
This means that you should probably use, or install certbot-auto.
Your certificates have expired 4 days ago, so updating them is your main priority.
First check wether it is already installed, the installation instructions can give you a clue where to look.
As JurgenAuer mentions, there is also a problem with your server configuration, that needs to be solved and this may be the underlying problem for not auto-updating the certificates.
so the question is where to start. On the one hand there is something with acme on that server. Should i try to solve the missconfiguration or should i install certbot?
As i can see there were more websites on that server but they have been moved. So my guess is that acme tries to renew certificates for that server that no longer belong there. Is there somewhere a log i can lookup to clear things up?
ok so i got some more information. On that server there is an acme running. With acme.sh --renew the certificate was renewed. When i open the website in a browser it still says, that the certificate is not ok. Any hints for me?