How to Convert .p7b to .jks

Vakeel Mansoori picture Vakeel Mansoori · Mar 21, 2016 · Viewed 18.6k times · Source

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

Answer

Andrew Zellman picture Andrew Zellman · Jan 4, 2017

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