Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6391482

DomainComponent is Not IAS5String but PrintableString ( See RFC3280 )

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 6
    • 1.4.2
    • security-libs
    • b83
    • sparc
    • solaris_9

        Customer reported the following issue.

        They have generated the ASN.1 structure of the PCKS#10 generated by keytool.
        They are seeing the following structure

          0 30 422: SEQUENCE {
         
           4 30 271: SEQUENCE {
         
           8 02 1: INTEGER 0
         
          11 30 102: SEQUENCE {
         
          13 31 19: SET {
         
          15 30 17: SEQUENCE {
         
          17 06 10: OBJECT IDENTIFIER '0 9 2342 19200300 100 1 25'
         
          29 13 3: PrintableString 'com'
         
                    : }
         
                    : }
         
          34 31 20: SET {
         
          36 30 18: SEQUENCE {
         
          38 06 10: OBJECT IDENTIFIER '0 9 2342 19200300 100 1 25'
         
          50 13 4: PrintableString 'fhlb'
         
        According to the RFC 3280,

        -- Naming attributes of type DomainComponent (from RFC 2247)
        id-domainComponent AttributeType ::=
                                  { 0 9 2342 19200300 100 1 25 }
        DomainComponent ::= IA5String

        The DomainComponent has to be of type IAS5String.
        Instead, it is showing PrintableString.

        Customer suspect a bug in the keytool.

              mullan Sean Mullan
              cphua Choon-Hong Phua (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: