Skip to content

Instantly share code, notes, and snippets.

@jogu
Last active April 28, 2023 09:35
Show Gist options
  • Save jogu/9823a2d5b0e4e2f8afe5b73b6fe27217 to your computer and use it in GitHub Desktop.
Save jogu/9823a2d5b0e4e2f8afe5b73b6fe27217 to your computer and use it in GitHub Desktop.
apache + letsencrypt + TLS-ALPN-01 with mod_md - avoids opening port 80
ServerName foo.com
Protocols http/1.1 acme-tls/1
MDCAChallenges tls-alpn-01
MDCertificateAgreement accepted
MDomain foo.com
MDPrivateKeys RSA 4096
<VirtualHost _default_:443>
ServerAdmin webmaster@foo.com
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
SSLEngine on
</VirtualHost>
@mqu
Copy link

mqu commented Sep 22, 2022

thanks :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment