![]() |
keytool -import -trustcacerts -keystore <myKeystore>.jks -file CACert.crt
The filename you specify with the -keystore flag will be the file used as the keystore. If the file exists, keytool will attempt to add the certificate to the store. If the file does not exist a new keystore will be created with the file name specified by the -keystore flag.