From 8e89baaebf645082175831ccb6318420b32d7ff6 Mon Sep 17 00:00:00 2001 From: "qiang.ou" Date: Wed, 29 Jul 2020 14:11:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=81=E4=B9=A6=E8=BF=87=E6=9C=9F=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E8=AE=BE=E7=BD=AE=E4=B8=BA1=E5=B9=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cert/certificate.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cert/certificate.go b/cert/certificate.go index 8ab2d66..72ab5d6 100644 --- a/cert/certificate.go +++ b/cert/certificate.go @@ -215,7 +215,7 @@ func (c *Certificate) template(host string) *x509.Certificate { CommonName: host, }, NotBefore: time.Now().AddDate(-1, 0, 0), - NotAfter: time.Now().AddDate(10, 0, 0), + NotAfter: time.Now().AddDate(1, 0, 0), BasicConstraintsValid: true, ExtKeyUsage: []x509.ExtKeyUsage{x509.ExtKeyUsageClientAuth, x509.ExtKeyUsageServerAuth}, KeyUsage: x509.KeyUsageDigitalSignature | x509.KeyUsageDataEncipherment,