From 4fc4fe97f7a2adac5c28dd41cab36a622def3523 Mon Sep 17 00:00:00 2001 From: squash Date: Thu, 1 Oct 2020 14:06:51 -0400 Subject: [PATCH] Update for key_type global option with Caddy v2 for people sharing their LE certs between Caddy and docker-mailserver --- docs/content/config/security/ssl.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/docs/content/config/security/ssl.md b/docs/content/config/security/ssl.md index a65c0592..8f673b3e 100644 --- a/docs/content/config/security/ssl.md +++ b/docs/content/config/security/ssl.md @@ -31,8 +31,20 @@ https://mail.domain.com { } } ``` +For Caddy v2 you can specify the key_type in your server's global settings, which would end up looking something like this if you're using a Caddyfile: +``` +{ +debug +admin localhost:2019 +http_port 80 +https_port 443 +default_sni mywebserver.com +key_type rsa4096 -For Caddy v2 it is necessary to use the json structured Caddyfile. A minimal config would look something like this: +} +```` + +If you are instead using a json config for Caddy v2, you can set it in your site's TLS automation policies: ``` {