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

Country code in Subject DN of CVC CA is case sensitive

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Cosmetic
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: EJBCA 7.4.0
    • Component/s: PKI core
    • Labels:
    • Sprint:
      EJBCA Team Alice - 2020 w2

      Description

      Create a new CVC CA with SubjectDN "C=se,CN=test" will result in

      javax.ejb.EJBException: java.lang.IllegalArgumentException: Unknown country code: Se
      at org.ejbca.core.ejb.ca.caadmin.CAAdminSessionBean.createCA(CAAdminSessionBean.java:323)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      ....
      at org.jboss.ejb3.proxy.impl.handler.session.SessionProxyInvocationHandlerBase.invoke(SessionProxyInvocationHandlerBase.java:164)
      at $Proxy397.createCA(Unknown Source)
      at org.ejbca.ui.web.admin.cainterface.CADataHandler.createCA(CADataHandler.java:119)
      at org.apache.jsp.ca.editcas.editcas_jsp._jspService(editcas_jsp.java:980)
      ...
      Caused by: java.lang.IllegalArgumentException: Unknown country code: Se
      at org.ejbca.cvc.ReferenceField.<init>(ReferenceField.java:47)
      at org.ejbca.cvc.HolderReferenceField.<init>(HolderReferenceField.java:33)
      at org.ejbca.core.model.ca.caadmin.CVCCA.generateCertificate(CVCCA.java:403)
      at org.ejbca.core.model.ca.caadmin.CA.generateCertificate(CA.java:595)
      at org.ejbca.core.ejb.ca.caadmin.CAAdminSessionBean.createCA(CAAdminSessionBean.java:305)
      ... 78 more

      If lower/mixed case country codes are not allowed we should help the admin to make the Country code to upper case.
      If any case is allowed it is a problem in the CVC library...

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              laurik_helmes Lauri Kongas
              Reporter:
              johan Johan Eklund
              Verified by:
              Amin Khorsandi
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 3 hours Original Estimate - 3 hours
                  3h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 6 hours
                  6h