Uploaded image for project: 'EJBCA'
  1. EJBCA
  2. ECA-4179

SCEP stress test regression

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: EJBCA 6.2.7
    • Fix Version/s: EJBCA 6.2.9
    • Component/s: Protocols
    • Labels:
      None
    • Issue discovered during:
      Testing

      Description

      BC upgrade refactoring in ECA-3992 broke the SCEP stress test.

      java.lang.ClassCastException: org.bouncycastle.cert.X509CertificateHolder cannot be cast to java.security.cert.X509Certificate
      at org.ejbca.ui.cli.SCEPTest$StressTest$GetCertificate.checkScepResponse(SCEPTest.java:581)
      ...

      JcaX509CertificateConverter should be used instead. And since this is something that happens quite a bit in the code now, a new CertTools method for this conversion would be nice.

      Also, the X509CRLHolder parsing in SCEPTest will try to cast to X509CRL which will fail if this code runs .

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              johan Johan Eklund
              Reporter:
              johan Johan Eklund
              Verified by:
              Mike Agrenius Kushner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: