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

getxxx for X500Name throws on some string forms

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.1.4
    • 1.2.0
    • security-libs
    • None
    • 1.1.4
    • unknown
    • solaris_2.5
    • Not verified

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: