Using letsencrypt from ncp admin

I would like to go from a manual letsencrypt update process to using the ncp embedded one from the ncp admin page.
… but when clicking the “Apply” button I get the following:

  • everything under /etc/letsencrypt/live gets deleted
  • the apache nextcloud.conf and ncp.conf get the SSLCertificateFile and SSLCertificateKeyFile replaced from the letsencrypt files to the /etc/ssl/… files.
  • the following message is displayed

[ letsencrypt ] (Tue Feb 8 18:41:01 CET 2022)
INFO: Metrics enabled: no
Apache self check:
AH00526: Syntax error on line 5 of /etc/apache2/sites-enabled/ncp.conf:
SSLCertificateFile: file ‘/etc/letsencrypt/live/’ does not exist or is empty
Action ‘-t’ failed.
The Apache error log may have more information.
letsencrypt certificates disabled. Using self-signed certificates instead.

… which is weird because the fullchain.pem has been deleted by starting that process

Where and how do I need to tell ncp that letsencrypt should be used and not the self-signed certificates anymore?
… or do I not understand anything correctly?

Thank you,

Hi there seem to be an similar issue solved here
best regards :slight_smile: