keytool -importcert cannot deal with duplicate certs

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 7
    • Component/s: security-libs
    • b124
    • generic
    • generic
    • Verified

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: