Skip to content

Commit

Permalink
Issue certificates with NotBefore set 1 day prior to avoid timezone i…
Browse files Browse the repository at this point in the history
…ssues in VM
  • Loading branch information
ivan-section-io committed May 21, 2018
1 parent 2db576e commit 208ea8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/util/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func GenerateCACert(certPath, keyPath string, name string) error {
Subject: pkix.Name{
CommonName: name,
},
NotBefore: time.Now().Add(time.Hour * -1),
NotBefore: time.Now().Add(time.Hour * -24),
NotAfter: time.Now().Add(time.Hour * 24 * 365 * 10),

KeyUsage: x509.KeyUsageKeyEncipherment | x509.KeyUsageDigitalSignature | x509.KeyUsageCertSign,
Expand Down

0 comments on commit 208ea8f

Please sign in to comment.