Wednesday, September 15, 2021

Import certificate to java Key store

 you can use keytool  to install a certificate to keystore. This is needed as eg: when you access a details from Jira site you need to install certificate of jira site to your local java key store.

Let's  say you need to extract details from your Jira production server.

1. save the certificate of the site via browser. you can click the lock sign left with the address bar.


 after that Click Certificate

Go to "Details" tab 

and Click "Copy to File"

let's assume you save the certificate as "jiraProd.cer". Note: cer extension will  automatically given when saving.

2. install certificate use below command

keytool -import -alias jiraProd -keystore "C:\SW\openlogic-openjdk-11\lib\security\cacerts" -file C:\SW\Certs\jiraProd.cer

keytool - tool use to import certicate

alias name given as "jiraProd " . you can verify your certificate after installation by this name

-alias jiraProd   

path to the keysore file

-keystore "C:\SW\openlogic-openjdk-11\lib\security\cacerts"     

 your certificate file or path to certificate file

-file C:\SW\Certs\jiraProd.cer

No comments:

Post a Comment