Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6500133

REGRESSION: CertificateParsingException for CRL Distribution Point with blank

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 8
    • 5.0, 6u17
    • security-libs

        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 ----------

              juh Jason Uh (Inactive)
              ndcosta Nelson Dcosta (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: