I have a certificate which is in .p7b I want change into .jks. So How can I convert it into .jks please reply thanks in advance
The alias should match the alias you used when you generated the key pair.
keytool -importcert -alias alias -trustcacerts -file keystore.p7b -keystore newkeystore.jks –storetype JCEKS
Source: Import certs from a p7b to a jks