Step 1
Create a store with temporary key inside
keytool -genkey-alias temp -keystore yourkeystore.jks -storepass brain123
Step 2
Delete existing entry
keytool -delete -alias temp -keystore yourkeystore.jks -storepass brain123
Step 3
We have empty keystore, we can check with below command
keytool -list -keystore yourkeystore.jks -storepass brain123
Step 4
Now we can import our certificate to the store
keytool -import -alias alias -file certificate.crt -keypass -keystore yourkeystore.jks -storepass brain123
That's all now you have jks file from crt.
Create a store with temporary key inside
keytool -genkey-alias temp -keystore yourkeystore.jks -storepass brain123
Step 2
Delete existing entry
keytool -delete -alias temp -keystore yourkeystore.jks -storepass brain123
Step 3
We have empty keystore, we can check with below command
keytool -list -keystore yourkeystore.jks -storepass brain123
Step 4
Now we can import our certificate to the store
keytool -import -alias alias -file certificate.crt -keypass -keystore yourkeystore.jks -storepass brain123
That's all now you have jks file from crt.
No comments:
Post a Comment