Wednesday, August 18, 2021
HOW TO CONVERT JKS TO WALLET USING ORAPKI
Hello Everyone!! Welcome to another blog by PKI404 where i will walk you through how to create JKS file then JKS (Java keystore) to wallet for oracle wallet manager. So let's start without any further due.
1. First step is to create a pfx and then p12 file or directly create p12 file.
See steps here : How to create pfx file
openssl pkcs12 -in ewallet.pfx -out ewallet.pem
then pem to p12
openssl pkcs12 -export -in ewallet.pem -out ewallet.p12
-name "server"
Keep the password : Password@123
2. Now Convert pfx to JKS
See here : How to create JKS file
Use the below command to create pfx to JKS file.
In windows open /Program files/ JAVA/ JDK/JRE /bin in Admin command prompt and run below command
keytool -importkeystore -srckeystore "C:\Users\pki404\Desktop\ewallet.p12" -srcstoretype pkcs12 -destkeystore C:\Users\pki404\Desktop\certificate.jks" -deststoretype JKS
In Linux run the command anywhere to convert P12/pfx to JKS
3. Now open ORAPKI bin folder it should have orapki tool.
Open command prompt with orapki tool path and run below command to create a empty wallet.
orapki wallet create -wallet ewallet -auto_login -pwd
Password@123
Now Import JKS into created empty wallet
orapki wallet jks_to_pkcs12 -wallet ewallet -pwd Password@123 -keystore D:\servertest.jks -jkspwd Password@123
See the example in below screenshot for creating wallet and importing JKS in wallet
Now that wallet has created Open Oracle wallet manager (OWM) and open the ewallet.p12 and save the wallet.
It should be in ready status.
Stay tuned for more blogs like this :)
it worked!
ReplyDeleteGlad to hear that :)
Delete