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

keytool -importcert cannot deal with duplicate certs

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 9
    • 7
    • security-libs
    • b124
    • generic
    • generic
    • Verified

    Description

      keytool does not eliminate duplicate certs when importing a reply. It also does not report an error and the cert chain in keystore is invalid after import.

      This is a small regression since we decided to generate the whole chain in 6937978. Before 6937978, after generate a cert using keytool -gencert, we cat the output and all CA certs into keytool -importcert, now that the output already contains CA certs, dup entries should be removed.

      Attachments

        Activity

          People

            weijun Weijun Wang
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: