-
Bug
-
Resolution: Won't Fix
-
P4
-
5.0, 6u17
-
x86, sparc
-
linux, solaris
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2228734 | 7-pool | Jason Uh | P3 | Closed | Won't Fix | |
JDK-2228721 | 6-pool | Mala Bankal | P3 | Closed | Won't Fix | |
JDK-2228723 | 5.0-pool | Mala Bankal | P3 | Closed | Won't Fix |
FULL PRODUCT VERSION :
1.5.0_06-b05
1.5.0_09-b03
ADDITIONAL OS VERSION INFORMATION :
Linux CentOs
A DESCRIPTION OF THE PROBLEM :
When I try to parse a X509Certificate with CRL Distribution Point with a blank char (ex: "ldap://mysite.it/CN=Servizio Test") with jdk 1.5, I have always this kind of exception: "java.security.cert.CertificateParsingException: java.io.IOException: java.net.URISyntaxException: Illegal character in path at index ...". With jdk 1.4.2_06-b03 it works fine.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.security.cert.CertificateParsingException: java.io.IOException: java.net.URISyntaxException: Illegal character in path at index 44: ldap://ldap.cgi.crs.lombardia.it/CN=Servizio di Test
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
String certBase64 = "MIIEljCCA36gAw..................0WULFMm9fu3XUdYdg=";
try {
InputStream inStream = new ByteArrayInputStream(
Base64.decode(certBase64 )
);
java.security.cert.CertificateFactory cf = java.security.cert.CertificateFactory.getInstance("X.509");
X509Certificate caCert = (X509Certificate) cf.generateCertificate(inStream);
System.out.println("ok: " + caCert.toString());
}
catch (Exception e) {
System.out.println("setCainfo - error" + e.toString());
}
---------- END SOURCE ----------
1.5.0_06-b05
1.5.0_09-b03
ADDITIONAL OS VERSION INFORMATION :
Linux CentOs
A DESCRIPTION OF THE PROBLEM :
When I try to parse a X509Certificate with CRL Distribution Point with a blank char (ex: "ldap://mysite.it/CN=Servizio Test") with jdk 1.5, I have always this kind of exception: "java.security.cert.CertificateParsingException: java.io.IOException: java.net.URISyntaxException: Illegal character in path at index ...". With jdk 1.4.2_06-b03 it works fine.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
java.security.cert.CertificateParsingException: java.io.IOException: java.net.URISyntaxException: Illegal character in path at index 44: ldap://ldap.cgi.crs.lombardia.it/CN=Servizio di Test
REPRODUCIBILITY :
This bug can be reproduced always.
---------- BEGIN SOURCE ----------
String certBase64 = "MIIEljCCA36gAw..................0WULFMm9fu3XUdYdg=";
try {
InputStream inStream = new ByteArrayInputStream(
Base64.decode(certBase64 )
);
java.security.cert.CertificateFactory cf = java.security.cert.CertificateFactory.getInstance("X.509");
X509Certificate caCert = (X509Certificate) cf.generateCertificate(inStream);
System.out.println("ok: " + caCert.toString());
}
catch (Exception e) {
System.out.println("setCainfo - error" + e.toString());
}
---------- END SOURCE ----------
- backported by
-
JDK-2228721 REGRESSION: CertificateParsingException for CRL Distribution Point with blank
-
- Closed
-
-
JDK-2228723 REGRESSION: CertificateParsingException for CRL Distribution Point with blank
-
- Closed
-
-
JDK-2228734 REGRESSION: CertificateParsingException for CRL Distribution Point with blank
-
- Closed
-
- duplicates
-
JDK-6931888 Inconsistant behavior for invalid URI name in cert file
-
- Closed
-
- relates to
-
JDK-6304267 keytool -printcert option skips certain extensions.
-
- Closed
-
-
JDK-7192202 Make sure keytool prints both unknown and unparseable extensions
-
- Closed
-
(1 relates to)