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

Handle CertificateCreateException with null ErrorCode in public web

    Details

    • Issue discovered during:
      Testing

      Description

      Currently a CertificateCreateException with null errorCode will throw an NPE from RequestInstance:542.

      Was able to trigger this by creating a EEP with NameConstriants enabled, but without enabling it in the CP:

      org.cesecore.certificates.certificate.CertificateCreateException: Tried to issue a certificate with Name Constraints without having enabled NC in the certificate profile.
      at org.cesecore.certificates.ca.X509CA.generateCertificate(X509CA.java:933)
      at org.cesecore.certificates.ca.X509CA.generateCertificate(X509CA.java:731)
      ...

        Attachments

          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: