Details

    • Subcomponent:
    • Resolved In Build:
      b102
    • CPU:
      x86
    • OS:
      windows_7
    • Verification:
      Verified

      Description

      FULL PRODUCT VERSION :
      java version "1.6.0_18"
      Java (TM) SE Runtime Enviroment (build 1.6.0_18-b07)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Verze 6.1.7600]

      A DESCRIPTION OF THE PROBLEM :
      I have this code :
      .....
      KeyStore kspkcs12 = null;
      kspkcs12.load(new FileInputStream(keystorePath), password.toCharArray());
                      KeyStore.PrivateKeyEntry keyEntry = (KeyStore.PrivateKeyEntry) kspkcs12.getEntry(alias, new KeyStore.PasswordProtection(password
                              .toCharArray()));
      X509Certificate cert = (X509Certificate) kspkcs12.getCertificate(alias);
      ......

      I have pfx file with two aliases alias1 and alias2. Alias1 has certificate chain with 2 SHA1 certificates. Alias2 has one SHA2 certificate.
      But when i load that pfx file with code above, in KeyStore there are 2 records (one for each alias) but both records has the same certificate loaded. To all aliases is loaded last added certificate to pfx file.
      Is it bug or feature ?

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Create pfx file. Insert first certificate with alias. Insert second certificate with another alias.
      Try load in using KeyStore class.
      Check first entry if there is right certificate.


      REPRODUCIBILITY :
      This bug can be reproduced always.

      SUPPORT :
      YES

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                weijun Weijun Wang
                Reporter:
                weijun Weijun Wang
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: