Enable LetsEncrypt for Nextcloud-snap:
sudo nextcloud.enable-https lets-encrypt
Enter email address and domain/subdomain
Disable LetsEncrypt for Nextcloud-snap:
sudo nextcloud.disable-https lets-encrypt
Due to a sanpd issue it may be necessary to disable the renewal-service manually.
sudo snap stop --disable $SERVICE
Example:
sudo snap stop --disable nextcloud.renew-certs
Renew service renew-certs.service
is automated in Nextcloud-snap.
Check renewal by issuing:
sudo journalctl -u snap.nextcloud.renew-certs.service
Enable self signed certificate:
sudo /snap/bin/nextcloud.enable-https self-signed
- Disable Lets Encrypt
- Remove all current Certificates
- Get new Certificates
- disable HTTPS (this just removes a symlink, it doesn’t remove any certs):
$ sudo nextcloud.disable-https
- remove all/any certificates that are there (this includes self-signed certs, Let’s Encrypt certs, everything). Make sure you get this command right, you don’t want to delete anything else in the current/ dir:
$ sudo rm -rf /var/snap/nextcloud/current/certs
- pretend you’re enabling HTTPS for the first time, using only the domains you want:
$ sudo nextcloud.enable-https lets-encrypt
View letsencrypt log in Netxtcloud-snap:
sudo cat /var/snap/nextcloud/current/certs/certbot/logs/letsencrypt.log
Handle certificates with reverse Proxy or NGINX-Proxy-Manager