Skip to content

Commit

Permalink
证书过期时间设置为1年
Browse files Browse the repository at this point in the history
  • Loading branch information
ouqiang authored Jul 29, 2020
1 parent 7ddc4fb commit 8e89baa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cert/certificate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8e89baa

Please sign in to comment.