How to convert a PKCS12 (.p12) keystore to a JKS keystore
search cancel

How to convert a PKCS12 (.p12) keystore to a JKS keystore

book

Article ID: 151981

calendar_today

Updated On:

Products

Symantec Products

Issue/Introduction

How to convert a PKCS12 (.p12) keystore to a JKS (.jks) keystore, please run the following command:
How to convert a PKCS12 file to a JKS keystore

Resolution

To convert a PKCS12 (.p12) keystore to a JKS (.jks) keystore, please run the following command:

keytool -importkeystore -srckeystore key.p12 -srcstoretype pkcs12 -destkeystore key.jks -deststoretype jks

where key.p12 is the name of the p12 file and key.jks is the name of the jks keystore to be created.

NOTE: This command is supported on JDK / JRE keytool versions 1.6 and greater.