Uploaded image for project: 'Commons - HTTP Framework'
  1. Commons - HTTP Framework
  2. CHF-210

Serialized ClientContext generates incorrectly formatted PEM certificate

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 26.0.0
    • Fix Version/s: 26.0.0, 24.0.32
    • Component/s: http-core
    • Labels:
      None

      Description

      Serializing a ClientContext which includes one or more client Certificates generates malformed PEM encoded certificates.

      Attempting to deserialize a previously serialized ClientContext containing one or more Certificates results in the following exception:

       {{}}

      Caused by: java.lang.IllegalStateException: Unable to deserialize certificates at org.forgerock.services.context.ClientContext.<init>(ClientContext.java:236) ... 252 more Caused by: java.security.cert.CertificateException: java.io.IOException: Incomplete data at sun.security.provider.X509Factory.engineGenerateCertificates(X509Factory.java:358) at java.security.cert.CertificateFactory.generateCertificates(CertificateFactory.java:462) at org.forgerock.services.context.ClientContext.<init>(ClientContext.java:233) ... 252 more Caused by: java.io.IOException: Incomplete data at sun.security.provider.X509Factory.readOneBlock(X509Factory.java:586) at sun.security.provider.X509Factory.parseX509orPKCS7Cert(X509Factory.java:449) at sun.security.provider.X509Factory.engineGenerateCertificates(X509Factory.java:356) ... 254 more

      {{}}

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                cgdrake Chris Drake
                Reporter:
                cgdrake Chris Drake
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: