jls jexec # csh pkg install git git clone <a href="https://github.com/letsencrypt/letsencrypt">https://github.com/letsencrypt/letsencrypt</a> cd letsencrypt ./letsencrypt-auto --help --debug all service apache24 stop ./letsencrypt-auto certonly --standalone --email mail@domain.com -d srv6.domain.com vi /usr/pbi/nextcloud-amd64/etc/apache24/extra/httpd-ssl.conf
Edit:
SSLCertificateFile "/etc/letsencrypt/live/srv6.domain.com/fullchain.pem" SSLCertificateKeyFile "/etc/letsencrypt/live/srv6.domain.com/privkey.pem" SSLCertificateChainFile "/etc/letsencrypt/live/srv6.domain.com/fullchain.pem"
vi /usr/pbi/nextcloud-amd64/etc/apache24/httpd.conf
Add the following virtual host for http to https redirect:
<VirtualHost> ServerName srv6.domain.com Redirect "/" "https://srv6.domain.com" </VirtualHost>
service apache24 start
https://kbhost.nl/knowledgebase/renew-ssl-for-nextcloud/