PKCS#9 ChallengePassword attribute does not allow for the UTF8String type

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 15
    • Affects Version/s: None
    • Component/s: security-libs
    • b12
    • Verified

      PKCS#10 requests that contain the ChallengePassword attribute cannot be encoded using a UTF8String ASN.1 type. Our implementation conforms to an older version of the PKCS#9 specification that only allowed PrintableString and TeletexString. A wider set of string encodings are allowed in PKCS#9 v2.0 (RFC 2985). Per the RFC our ChallengePassword processing should be able to handle any string encoding allowed under the DirectoryString composite type (from X.520):

      DirectoryString{INTEGER:maxSize} ::= CHOICE {
           teletexString TeletexString(SIZE (1..maxSize,...)),
           printableString PrintableString(SIZE (1..maxSize,...)),
           bmpString BMPString(SIZE (1..maxSize,...)),
           universalString UniversalString(SIZE (1..maxSize,...)),
           uTF8String UTF8String(SIZE (1..maxSize,...)) }

            Assignee:
            Jamil Nimeh
            Reporter:
            Jamil Nimeh
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: