keystore generation using keytool code example
Example: how to add new certificate to jks file
keytool -importcert -file certificate.cer -keystore keystore.jks -alias "Alias"
keytool -importcert -file certificate.cer -keystore keystore.jks -alias "Alias"