Self-signed cert for snap

I’m setting up just a home LAN installation. I used Ubuntu 18.04, and actually picked it from Ubuntu’s installation menu. I now realize that that means it uses the snap package of Nextcloud.

Anyways, in the help docs here:
https://docs.nextcloud.com/server/stable/admin_manual/installation/source_installation.html#enabling-ssl
there are instructions on enabling Apache’s built-in self-signed cert. This doesn’t work on the snap version. Does anyone know how to accomplish the same thing in the snap version?

TIA

1 Like

Hi Tia,

Try the command:

sudo nextcloud.enable-https self-signed.

Kind regards,

Ton

Thank you!

For Snap-Users:

sudo /snap/bin/nextcloud.enable-https self-signed
or
sudo /snap/bin/nextcloud.enable-https lets-encrypt

snap user version 2 that works well:

sudo snap run nextcloud.enable-https self-signed