On behalf of @Mattias
My Nextcloud is running fine using the snap. A Let’s Encrypts Certificate was easily obtained with help of the nextcloud.enable-https script.
It’s for the moment a theoretical question, but I am curious nonetheless and want to be prepared for the day when I am in need of this information.
How to move and reuse an existing Let’s Encrypt Certificate from a snap to a new fresh nextcloud snap environment?
Use somehow the custom option of the nextcloud.enable-https script ?
Simply copy the certficiate data from var/snap/nextcloud/current/certs/certbot/config to the same folder at the new snap environment and run the nextcloud.enable-https script with the lets-encrypt option ?
Something else ?