How do you convert a pkcs12 to a jks keystore?
search cancel

How do you convert a pkcs12 to a jks keystore?

book

Article ID: 219822

calendar_today

Updated On:

Products

DX NetOps CA Performance Management - Usage and Administration CA Spectrum CA Network Flow Analysis (NetQos / NFA)

Issue/Introduction

How do you convert a pkcs12 formatted keystore to a jks format?

How do you import a pkcs12 or pfx keystore into another keystore

Environment

All supported releases

Resolution

keytool -importkeystore -srckeystore keystore.p12 -srcstoretype PKCS12 -destkeystore keystore.jks  -deststoretype JKS -srcstorepass p12_password -deststorepass jks_password -srcalias myalias -destalias myalias -srckeypass mykeypass -destkeypass mykeypass