Enable HTTPS on NextCloud

Hello,

You need to download all 3 .pem files from CloudFlare SSL (Your SSL Certificate, Private Key, and Key Chain.)

You may need to create a directory custom (not necessary but for installation purpose only) under /var/snap/nextcloud/current/certs/

You need to put all three .PEM files in that directory /var/snap/nextcloud/current/certs/custom/

Navigate your self via terminal to that direcoty and then run the following command, sudo nextcloud.enable-https custom -s cert.pem privkey.pem chain.pem

Refer here → Using your own SSL certs in snap · Issue #199 · nextcloud-snap/nextcloud-snap (github.com)

Thanks.