Skip to content

Commit

Permalink
fix: make sure the HTTPs cert is valid from a day before creation
Browse files Browse the repository at this point in the history
  • Loading branch information
kitos9112 committed Jul 25, 2023
1 parent 9a5c025 commit 69e71ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func main() {
CommonName: "localhost",
},
DNSNames : []string{"localhost"},
NotBefore: time.Now(),
NotBefore: time.Now().AddDate(0, 0, -1), // Valid from one day before
NotAfter: time.Now().Add(time.Hour * 24 * 365), // Valid for one year.
BasicConstraintsValid: true,
}
Expand Down

0 comments on commit 69e71ee

Please sign in to comment.