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

Lower logging level in from ERROR to INFO when request key is not allowed

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Cosmetic
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.4.3
    • Component/s: None
    • Labels:
    • Issue discovered during:
      Customer

      Description

      Customer getting excessive rows of logs.  Suggested by TomasG to open a ticket:

      "I would say it is excessive log level here. There is no issue in functionality (as they clearly say), but it should not be logged at level ERROR. I would create a ticket for this, to lower logging level in SignSessionBean.createCertificate from ERROR to max INFO for the cases where it is handled normally (there is maybe one more place in the code)."

       

      11:39:06,262 ERROR [org.ejbca.core.ejb.ca.sign.SignSessionBean] (default task-1) Key is of unknown type: : org.cesecore.certificates.certificate.IllegalKeyException: Illegal key length, not authorized by certificate profile: 1024.at org.cesecore.certificates.certificateprofile.CertificateProfile.verifyKey(CertificateProfile.java:2977) [cesecore-common.jar:EJBCA 7.4.0 Enterprise (35255)]at org.cesecore.certificates.ca.X509CAImpl.generateCertificate(X509CAImpl.java:1145) [cesecore-x509ca.jar:EJBCA 7.4.0 Enterprise (35255)]at org.cesecore.certificates.ca.X509CAImpl.generateCertificate(X509CAImpl.java:1099) [cesecore-x509ca.jar:EJBCA 7.4.0 Enterprise (35255)]at org.cesecore.certificates.certificate.CertificateCreateSessionBean.createCertificate(CertificateCreateSessionBean.java:497)at org.cesecore.certificates.certificate.CertificateCreateSessionBean.createCertificate(CertificateCreateSessionBean.java:229)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_141-BLFS]
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tomas Tomas Gustavsson
              Reporter:
              tonyv Tony Vu
              Verified by:
              Lauri Kongas
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 10 minutes Original Estimate - 10 minutes
                  10m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 15 minutes
                  15m