Some changes that got missed in the rebase
This commit is contained in:
parent
2419559f5c
commit
cd41f64a03
|
|
@ -563,6 +563,12 @@ func TestRejectValidityTooLong(t *testing.T) {
|
|||
test.AssertNotError(t, err, "Failed to create CA")
|
||||
ca.SA = storageAuthority
|
||||
|
||||
// Test that the CA rejects CSRs that would expire after the intermediate cert
|
||||
csrDER, _ := hex.DecodeString(NO_CN_CSR_HEX)
|
||||
csr, _ := x509.ParseCertificateRequest(csrDER)
|
||||
_, err = ca.IssueCertificate(*csr, 1, FarPast)
|
||||
test.Assert(t, err != nil, "Cannot issue a certificate that expires after the underlying authorization.")
|
||||
|
||||
// Test that the CA rejects CSRs that would expire after the intermediate cert
|
||||
csrDER, _ = hex.DecodeString(NO_CN_CSR_HEX)
|
||||
csr, _ = x509.ParseCertificateRequest(csrDER)
|
||||
|
|
|
|||
Loading…
Reference in New Issue