Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

根证书最长时间不能大于18个月 #22

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion cert/certificate.go
Expand Up @@ -242,7 +242,7 @@ func (c *Certificate) GenerateCA() (*Pair, error) {
Locality: []string{"Xiamen"},
},
NotBefore: time.Now().AddDate(0, -1, 0),
NotAfter: time.Now().AddDate(30, 0, 0),
NotAfter: time.Now().AddDate(1, 0, 0),
BasicConstraintsValid: true,
IsCA: true,
MaxPathLen: 2,
Expand Down
2 changes: 1 addition & 1 deletion go.mod
@@ -1,3 +1,3 @@
module github.com/ouqiang/goproxy
module github.com/li45/goproxy

go 1.13
2 changes: 1 addition & 1 deletion proxy.go
Expand Up @@ -28,7 +28,7 @@ import (
"sync/atomic"
"time"

"github.com/ouqiang/goproxy/cert"
"github.com/li45/goproxy/cert"
)

const (
Expand Down