mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8237962: give better error output for invalid OCSP response intervals in CertPathValidator checks
Reviewed-by: clanger, mullan
This commit is contained in:
parent
edd28610d5
commit
ef41763d32
2 changed files with 6 additions and 5 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2017, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -599,8 +599,9 @@ public final class OCSPResponse {
|
|||
}
|
||||
debug.println("OCSP response validity interval is from " +
|
||||
sr.thisUpdate + until);
|
||||
debug.println("Checking validity of OCSP response on: " +
|
||||
new Date(now));
|
||||
debug.println("Checking validity of OCSP response on " +
|
||||
new Date(now) + " with allowed interval between " +
|
||||
nowMinusSkew + " and " + nowPlusSkew);
|
||||
}
|
||||
|
||||
// Check that the test date is within the validity interval:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2017, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -175,7 +175,7 @@ public class ValidatePathWithParams {
|
|||
certStatus = Status.EXPIRED;
|
||||
} else {
|
||||
throw new RuntimeException(
|
||||
"TEST FAILED: couldn't determine EE certificate status");
|
||||
"TEST FAILED: couldn't determine EE certificate status", cpve);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue