Renew command terminal


Please see:

With which command in terminal I can renew the certificate?

Thank you for the answer,

Best regards,



Hi @Johnletsencrypt

you can use the same command. Or

certbot renew

But don’t forget to open your router.


When I type this command, I get the following message:

Command ‘certbot’ not found, but can be installed with:

sudo apt install certbot

Pleas ask your administrator

I used the instal snap nextcloud on ubuntu. So there also is ‘cron’?

What can I do?


Check your first topic:

Certbot = Letsencrypt = certbot-auto.

You have an installation with “Letsencrypt”, so use that. The code is the same, but the starting points are different.


Maybe kind of stupid but I am a beginner and I don’t know what to do after your reply.
Is the command: letsencrypt renew?
Or should I start with: sudo nextcloud.enable-https lets-encrypt?..and after that letsencrypt renew?


Yes. If I use “certbot”, then replace this with “letsencrypt”.


I did open the router port 80, also on the computer. Commands as rootuser.
Did letsencrypt renew: the reaction: no renewals were attempted

I installed certbot and certbot renew… then the same reaction.

I have tried several times.

What could be the solution?

Ohh…When I look now at ssl servertest I see that the certificate is renewed!!


Your port 80 doesn’t answer. But your https / www - version works: -14 10.030 T
Timeout - The operation has timed out -14 10.027 T
Timeout - The operation has timed out 302 0.724 A 400 0.943 N
Bad Request
Certificate error: RemoteCertificateNameMismatch 200 0.157 A -14 10.023 T
Timeout - The operation has timed out -14 10.024 T
Timeout - The operation has timed out

And your certificate is new:
19.02.2019 - 1 entries

Perhaps you should create one certificate with both domain names (www + non-www) and use that. The non-www version has the wrong certificate and throws an 400 error.


I have renewed the certificate with the command:
sudo nextcloud.enable-https lets-encrypt
After this renew I have directly closed port 80 again in my router and computer.
Whats the advantage to have a domain with non-www?
Thank you for your help.


If you have a public domain with extern users:

Then every domain name you have defined in your dns settings should answer via port 80 and port 443 without any error.

So you have 2 domain names and 2 protocols -> 4 combinations (http + non-www, http + www, https + non-www, https + www), all should answer correct, three with a 301 redirect, one https with a http status 200.

If it is only a private domain without any external user, it’s not so relevant.


Oke, thats clear. Thank you for your help.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.