> Am 22.04.2023 um 14:11 schrieb Patrick O'Callaghan <pocallag...@gmail.com>:
> 
> I'm trying to set up a simple web server for personal use, using
> Apache, and want to enable HTTPS access. This involves getting an SSL
> certificate and I'll be using LetsEncrypt (www.letsencrypt.org).
> 
> The recommended way to do this is with Certbot, but I can't get past
> this error:


With apache you have the advantage that you don't need certbot at all, but 
apache does everything itself with the help of the md module. Configure as 
follows:

# Letsencrypt certificate management via Apache mod_md
# By default, automatically all alternative names get included.
MDomain MY_DOMAIN.TLD
MDContactEmail  ME@MY_DOMAIN.TLD
MDCertificateAgreement accepted
<VirtualHost *:443>
    ServerName      MY_DOMAIN.TLD
    ServerAlias     www.MY_DOMAIN.TLD
    ServerAlias     demo.MY_DOMAIN.TLD
    …
    … 
</VirtualHost>

After adding the above configuration restart apache. Wait some minutes and 
restart again. You should now see in the logs the certificates.

Apache cares about the 3-monthly renewing. You don’t need to do anything.





--
Peter Boy
https://fedoraproject.org/wiki/User:Pboy
p...@fedoraproject.org

Timezone: CET (UTC+1) / CEST (UTC+2)


Fedora Server Edition Working Group member
Fedora docs team contributor
Java developer and enthusiast


_______________________________________________
users mailing list -- users@lists.fedoraproject.org
To unsubscribe send an email to users-le...@lists.fedoraproject.org
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to