This commit is contained in:
simonzhangsz committed 2023-08-22 09:39:00 +08:00
1 parent 1ee5b734ce
commit a534de00bd
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -25,7 +25,7 @@ func main() {
SerialNumber: big.NewInt(2023),
Subject: pkix.Name{CommonName: "Root CA"},
NotBefore: time.Now(),
NotAfter: time.Now().AddDate(10, 0, 0), // 有效期为10年
NotAfter: time.Now().AddDate(0, 0, 1), // 有效期为10年
KeyUsage: x509.KeyUsageCertSign | x509.KeyUsageCRLSign,
BasicConstraintsValid: true,
IsCA: true,