getxxx for X500Name throws on some string forms

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 1.1.4
    • Affects Version/s: 1.2.0
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: