Fix unit test

pull/1660/head
Mariano Cano 2 months ago
parent ad70982cda
commit 683f2dfff3
No known key found for this signature in database

@ -625,7 +625,7 @@ func TestCARenew(t *testing.T) {
cert, err := x509util.NewCertificate(cr)
assert.FatalError(t, err)
crt := cert.GetCertificate()
crt.NotBefore = time.Now()
crt.NotBefore = now
crt.NotAfter = leafExpiry
crt, err = x509util.CreateCertificate(crt, intermediateCert, pub, intermediateKey.(crypto.Signer))
assert.FatalError(t, err)

Loading…
Cancel
Save