How to install Certicate of another server on your linux server

Let say you want to install certificate of server A on server B. So that Server B can access Server A .
Here are the steps you need to do install it.

1. Export the certificate of server A























by exporting it you can save it to your local system say as servera.blah.com

2. Login to your server B as root and run this command

keytool -import -trustcacerts -file ~/servera.blah.com -keystore $JAVA_HOME/jre/lib/security/cacerts -alias proxy01


 There you go !!