Skip to content

Commit

Permalink
Update cert.go
Browse files Browse the repository at this point in the history
证书有效期
  • Loading branch information
baiqll authored Aug 10, 2023
1 parent 4af2832 commit d340515
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cert/cert.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ func CreateCert(tls_path string, domain string) (err error) {
OrganizationalUnit: []string{"SRCHTTP"},
CommonName: "srchttp.com",
},
NotBefore: time.Now(),
NotBefore: time.Now().AddDate(0, 0, -2),
NotAfter: time.Now().AddDate(2, 0, 0),
BasicConstraintsValid: true,
IsCA: false,
Expand Down

0 comments on commit d340515

Please sign in to comment.