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

getxxx for X500Name throws on some string forms

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 1.2.0
    • Fix Version/s: 1.1.4
    • Component/s: security-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      1.1.4
    • CPU:
      unknown
    • OS:
      solaris_2.5
    • Verification:
      Not verified

      Description

      run against ATT cert from Novell:

      calling toString, getName or just printing out the X500Name object gets the
      this:

      OU=#14124469726563746F7279205365727669636573, O=#140441542654, C=US

      I've tried getting each component of the X500Name separately and have failed,
      except when I call the getCountry method; that correctly returns "US". Both
      getOrganization and getOrganizationalUnit throws:

      java.io.IOException: DerValue.getPrintableString, not a string 20
              at sun.security.util.DerValue.getPrintableString(DerValue.java:427)
              at sun.security.x509.X500Name.getOrganization(X500Name.java:242)
              at certdump.main(certdump.java:48)
      Exception: java.io.IOException: DerValue.getPrintableString, not a string 20

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hprafullsunw Hemlata Prafullchandra (Inactive)
                Reporter:
                dkumsunw David Kum (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: