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 (signed certs)
  • Loading branch information
ivan-section-io committed May 21, 2018
1 parent 208ea8f commit 658a4a5
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 @@ -92,7 +92,7 @@ func GenerateSignedCert(certPath, keyPath, cn string, ips []net.IP, alternateDNS
CommonName: cn,
Organization: []string{"system:masters"},
},
NotBefore: time.Now().Add(time.Hour * -1),
NotBefore: time.Now().Add(time.Hour * -24),
NotAfter: time.Now().Add(time.Hour * 24 * 365),

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

0 comments on commit 658a4a5

Please sign in to comment.