zowe / zowe-install-packaging

Packaging repository for the Zowe install scripts and files
Eclipse Public License 2.0
27 stars 52 forks source link

zwe keytool error using Java 8 SR8 #3558

Open MarkAckert opened 1 year ago

MarkAckert commented 1 year ago

When running install and test automation using Java 8 SR8, we saw the below keytool error (information redacted).

Sign the CSR using the Certificate Authority "local_ca":

Calling keytool -gencert -v -infile /****/localhost.csr -outfile /****/localhost.signed.cer -keystore /****/local_ca.keystore.p12 -alias local_ca -keypass **** -storepass **** -storetype PKCS12 -ext SAN=dns:***,ip:***,dns:localhost.localdomain,dns:localhost,ip:127.0.0.1 -ext KeyUsage:critical=keyEncipherment,digitalSignature,nonRepudiation,dataEncipherment -ext ExtendedKeyUsage=clientAuth,serverAuth -rfc -validity 3650

  * keytool failed

  * Exit code: 1

  * Output:

    keytool error (likely untranslated): java.lang.IllegalArgumentException: java.util.Vector incompatible with [Ljava.lang.Object;

Error ZWEL0169E: Failed to create certificate "localhost".
JoeNemo commented 1 year ago

Is this a new error or another aspect of the GSK vs. Java issues?

@1000TurquoisePogs for your attention, too.

dkelosky commented 1 month ago

I experienced this issue as well. Upgrading to Java 17 got me beyond this error.

balhar-jakub commented 1 month ago

Which means we should accept it for V3 as the Java 17 is anyway a pre-req

dkelosky commented 1 month ago

the only problem is that I then ran into a different problem (#3977 ) with Java 17 😞