8294035: Remove null ids checking from keytool -gencrl

Reviewed-by: weijun
This commit is contained in:
Hai-May Chao 2025-08-28 16:36:14 +00:00
parent 8c6d12250b
commit 33d00a77f3

View File

@ -1562,9 +1562,6 @@ public final class Main {
private void doGenCRL(PrintStream out)
throws Exception {
if (ids == null) {
throw new Exception("Must provide -id when -gencrl");
}
Certificate signerCert = keyStore.getCertificate(alias);
byte[] encoded = signerCert.getEncoded();
X509CertImpl signerCertImpl = new X509CertImpl(encoded);