From 3d4845af1841f696b666c21a39466d58881494fb Mon Sep 17 00:00:00 2001 From: "ithink.chan" Date: Tue, 16 Jul 2019 16:33:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=20self=20signed=20=E6=9C=9F?= =?UTF-8?q?=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Software/Application/Caddy/Caddy_的使用.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Software/Application/Caddy/Caddy_的使用.md b/Software/Application/Caddy/Caddy_的使用.md index ddb26ca..ecc5465 100644 --- a/Software/Application/Caddy/Caddy_的使用.md +++ b/Software/Application/Caddy/Caddy_的使用.md @@ -102,3 +102,11 @@ TLS 必须满足以下要求才能保证 HTTPS 功能正常: * TLS is not turned off in site's definition * Certificates and keys are not provided by you * Caddy is able to bind to ports 80 and 443 (unless you use the DNS challenge) + +## 修改 self signed 期限 + +修改如下代码: + +```go +selfsigned.go:47:notAfter = notBefore.Add(24 * time.Hour * 7) +```