To create a jks file I run the following commands:
"C:\Program Files (x86)\OpenSSL-Win32\bin\openssl" pkcs12 -export -in client.crt -inkey client.key -certfile clientroot.crt -name kafkaclient -out kafkaclient.p12 -password pass:password
"C:\Program Files\Java\jre1.8.0_281\bin\keytool.exe" -importkeystore -srckeystore kafkaclient.p12 -srcstoretype pkcs12 -destkeystore kafkaclient.jks -deststoretype JKS -destkeypass password -deststorepass password --srcstorepass password
"C:\Program Files\Java\jre1.8.0_281\bin\keytool.exe" -import -trustcacerts -keystore kafkaclient.jks -storepass password -alias cmekafka -file clientroot.crt -noprompt
I managed to run the 1st but was prompted to create a password which I could just hit Enter on. The 2nd requires the Keystore password be at least 6 characters.
Is it possible to run these without the need for passwords?