How to add your own certificate to webreckeys.ks file

Document ID : KB000115889
Last Modified Date : 26/09/2018
Show Technical Document Details
Introduction:
How to add your own certificate to webreckeys.ks file
Environment:
All supported DevTest Environments 
Instructions:
If you want to add your own certificate to the defualt webreckeys.ks file. Please find below are the steps: 

 1. Export the certificate from the server keystore 

keytool -exportcert -rfc -alias serverA -keystore keyStore.ks -file serverA.cer 

The -rfc means to export the certificate as ASCII text rather than binary. 
ServerA- name of the server 
serverA.cer - name of the certificate 
keyStore.ks - keyStore file name 

2. Add current certificate (serverA.cer) to the lisa keystore file (webreckeys.ks) 

keytool -importcert -file serverA.cer -keystore webreckeys.ks 

It will ask for the password while adding certificate to webreckeys.ks file. Password is : passphrase