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

Remove null ids checking from keytool -gencrl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 26
    • 7, 8, 11, 17, 21
    • 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.

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

              Created:
              Updated:
              Resolved: