SSL .key and .crt to java keystore groovy script
OpenSSL need to be installed
Just try: groovy import keyfile.key certfile.crt
Change in source:
Target keystore name
KEYSTORE_NAME = 'keystore.ImportKey'
Target keystore password
KEYPASS = 'importkey'
Target keystore alias
ALIAS = 'importkey'
Target certificate name
CERT_NAME = 'public.cer'
For create public java keystore (without private key):
keytool -importcert -file public.cer -keystore public -alias importkey -storepass importkey