keytool -list -alias should not assume it is always a certificate

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 27
    • Affects Version/s: 11, 17, 21
    • Component/s: security-libs
    • None

      When listing an entry by specifying -alias in a keystore, keytool assumes it is a certificate (at link as below), but it could be a secret key entry.
      https://github.com/openjdk/jdk/blame/master/src/java.base/share/classes/sun/security/tools/keytool/Main.java#L1294

            Assignee:
            Haimay Chao
            Reporter:
            Haimay Chao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: