Remove null ids checking from keytool -gencrl

XMLWordPrintable

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

         private void doGenCRL(PrintStream out)
                 throws Exception {
             if (ids == null) { // <--- this condition is always false
                 throw new Exception("Must provide -id when -gencrl");
             }

      ...because it is always initialized to non-null, but empty list:

         private final List<String> ids = new ArrayList<>(); // used in GENCRL

      If there is no -id, an empty CRL will be generated. A CRL can be empty, which means no new certs have been revoked since last update.

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

              Created:
              Updated:
              Resolved: