Loving nextcloud but running into a non-critical issue. Spent the last 4 hours reading all available previous threads/posts on this topic, but still canât figure out why the SSL cert from letsencrypt is not auto renewing?
This is my second setup for the same failure (I wiped out the first setup due to certs not renewing, formatted the hard disk and re-installed everything including base linux/gnu again). So now I have a fresh re-install of nextcloud 15 via snap, running on ubuntu 18.04 server LTS, on Intel NUC hardware. Firewall (UFW/iptables) is allowing 1) all outgoing and 2) TCP 80, 443 for incoming on IPv4 and IPv6. Router has TCP 80 and 443 ports open. I obtained original cert via ânextcloud.enable-https lets-encryptâ (did not use certbot due to having the former option available on snappy NC15). I can access the server via web browser and iOS apps, using âcloud.domain.comâ without issues.
There are a couple of questions that may help me and possibly others like myself who may be encountering this issue:
Is there a man page or more documentation available on the command ânextcloud.enable-https lets-encryptâ, ie how many days in before the expiration does it attempt to obtain cert? where does it log successes and failures? what syntax is available for ânextcloud.enable-https lets-encrypt -XXXXâ?
Are there people who are successfully using nextcloud 15 snap and letsencrypt with autorenewing cert, that did not require intervention? (basically iâm wondering if itâs a software bug or my particular setup)
Thank you in advance for sharing any wisdom on this topic.
I basically have the same issue. Also didnât know how to set the certificate to renew automatically. But I too have this and just had to re-install it again using nextcloud.enable-https lets-encrypt
Same overhere. After 3 months the certificate expires. You can reinstall it by using the nextcloud.enable-https lets-encrypt command. If somebody has a small description how to prolong the certificate before it expires I would be glad to here.
edit: It might be the firewall on my nextcloud instance. I remember now that I need to disable the uncomplicated firewall before I was able to get a new certificate. Maybe a rule need to be added for port 80 that allow traffic to the letsencrypt server.
edit2: I can confirm that lets encrypt automatically renews the certificate 30 days before its expires if port 80 is open to the letsencrypt server.
First off, I had to add indentation (which I fixed in the above blockquote). Then, running the script to test it, I get the following error:
$ python renew_certs.py
File "renew_certs.py", line 6
keyboard.type(ânextcloud.enable-https lets-encryptâ)
^
SyntaxError: invalid character in identifier
My python is extremely rusty⌠any idea why this is happening? Thanks!