Moving SSL keys from snap to traditional installation

Goal:
To run a web site and Nextcloud from the same Apache server simultaneously, using previously installed SSL keys.

Problem:
Currently, I have Nextcloud installed using a snap package, which means I can’t easily change the config for its internal Apache server, nor is it recommended to do so, apparently. Therefore, I have to move the SSL keys from the snap package to a new installation. I need to know the procedure for retrieving/exporting the existing keys from the snap package and then what to do to import those same keys to the future installation.

I used sudo nextcloud.enable-https lets-encrypt to obtain the SSL keys.

If it’s advisable to somehow release the existing keys and acquire new ones, I’d need to know the procedure for releasing the keys. A link to documentation for doing that would be appreciated!

System:

  • Ubuntu 18.04.2 LTS Server running in a VirtualBox vm.
  • 2g allocated system memory
  • 32g allocated storage

Thanks