提交 c6e7907f 编写于 作者: C coffeys

8133489: Better messaging for PKIX path validation matching

Reviewed-by: xuelei, phh, andrew
上级 88f2c024
...@@ -2115,8 +2115,11 @@ public class X509CertSelector implements CertSelector { ...@@ -2115,8 +2115,11 @@ public class X509CertSelector implements CertSelector {
if (certSubjectKeyID == null || if (certSubjectKeyID == null ||
!Arrays.equals(subjectKeyID, certSubjectKeyID)) { !Arrays.equals(subjectKeyID, certSubjectKeyID)) {
if (debug != null) { if (debug != null) {
debug.println("X509CertSelector.match: " debug.println("X509CertSelector.match: subject key IDs " +
+ "subject key IDs don't match"); "don't match\nX509CertSelector.match: subjectKeyID: " +
Arrays.toString(subjectKeyID) +
"\nX509CertSelector.match: certSubjectKeyID: " +
Arrays.toString(certSubjectKeyID));
} }
return false; return false;
} }
......
...@@ -29,12 +29,12 @@ ...@@ -29,12 +29,12 @@
/** /**
* @test * @test
* @bug 6852744 * @bug 6852744 8133489
* @summary PIT b61: PKI test suite fails because self signed certificates * @summary PIT b61: PKI test suite fails because self signed certificates
* are being rejected * are being rejected
* @run main/othervm KeyUsageMatters subca * @run main/othervm -Djava.security.debug=certpath KeyUsageMatters subca
* @run main/othervm KeyUsageMatters subci * @run main/othervm -Djava.security.debug=certpath KeyUsageMatters subci
* @run main/othervm KeyUsageMatters alice * @run main/othervm -Djava.security.debug=certpath KeyUsageMatters alice
* @author Xuelei Fan * @author Xuelei Fan
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册