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

Broken certificate number in debug output

    XMLWordPrintable

Details

    • b35
    • Not verified

    Backports

      Description

        Reading the code of sun/security/tools/keytool/Main.java

        -----------------
                    int i = 0;
                    for (Certificate cert : chain) {
                        try {
                            if (rfc) {
                                dumpCert(cert, out);
                            } else {
                                out.println("Certificate #" + i++);
                                out.println("====================================");
                                printX509Cert((X509Certificate)cert, out);
                                out.println();
                            }
        ///// the following line can output "certificate 3 of 2" because oneInMany prints (i+1)
                            checkWeak(oneInMany(rb.getString("the.certificate"), i, chain.size()), cert);
        -----------------

        Attachments

          Issue Links

            Activity

              People

                igerasim Ivan Gerasimov
                igerasim Ivan Gerasimov
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: