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

keytool won't import pkcs12 files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.3.0
    • security-libs



      Name: krC82822 Date: 03/20/2001


      java version "1.3.1-beta"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1-beta-b15)
      Java HotSpot(TM) Client VM (build 1.3.1beta-b15, mixed mode)

      Attempting to import a pkcs12 file with keytool, eg.

      keytool -import -alias "me" -file my_key.p12 -storetype pkcs12 -keypass mypass
      results in the following:
      keytool error: java.security.KeyStoreException: pkcs12 not found

      FYI, the reason I was testing was I get an error when trying to import this
      file under 1.3.0, which is:
      keytool error: java.io.IOException: DerInputStream.getLength(): lengthTag=109,
      too big.

      Was hoping the new keytool would fix this.
      (Review ID: 119176)
      ======================================================================

            Unassigned Unassigned
            kryansunw Kevin Ryan (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: