You may have to convert a JKS to a PKCS#12 for several reasons. For example, if you have to copy or transfer your certificate from a Tomcat server (or a platform using JKS file type) to a server using PKCS#12 file type such as Microsoft. The PKCS#12 could also be converted to be installed on platforms using PEM files (Apache for example).
Command to create the PFX/P12 file:
> keytool -importkeystore -srckeystore jksFileName.jks -destkeystore pkcs12FileName.p12 -srcstoretype JKS -deststoretype PKCS12
You'll need to modify these parameters:
Related Article :