RFR: 8251859: sun/security/validator/PKIXValAndRevCheckTests.java fails

Rajan Halade RAJAN.HALADE at ORACLE.COM
Tue Aug 18 00:11:12 UTC 2020


Please review this patch to perform backdated certpath check as test certificate has expired.

diff -r cb8450f00ee9 test/jdk/sun/security/validator/PKIXValAndRevCheckTests.java
--- a/test/jdk/sun/security/validator/PKIXValAndRevCheckTests.java	Tue Aug 18 01:08:18 2020 +0200
+++ b/test/jdk/sun/security/validator/PKIXValAndRevCheckTests.java	Mon Aug 17 17:09:47 2020 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2019, 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
@@ -374,6 +374,7 @@
         // Test 1: Path validation with revocation explicitly turned
         // off, expected to pass.
         pkixParams = new PKIXBuilderParameters(trustAnchors, null);
+        pkixParams.setDate(VALID_DATE);
         pkixParams.setRevocationEnabled(false);
         validatePath(goodPath, Collections.emptyList(), pkixParams, null);

Thanks,
Rajan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/security-dev/attachments/20200817/b1571798/attachment.htm>


More information about the security-dev mailing list