Check the certificates installed or not Find the actual java location using readlink -f `which java` Go to jdk/jre/lib/security Run the command : ../../bin/keytool -list -keystore cacerts Get the Certificate (This is WIP, was not getting the correct certificates) Use either of these commands to get the certificates ( need to modify) openssl s_client -showcerts -connect 10.101.12.89:8087 /dev/null|openssl x509 -outform PEM >emailuat.pem echo -n | openssl s_client -connect 10.186.18.23:8084 \ | sed -ne '/-BEGIN CERTIFICATE-/,/-END CERTIFICATE-/p' > emailuat.cert Install the certificate Find the actual java location using readlink -f `which java` Go to jdk/jre/lib/security Run the command ../../bin/keytool -import -trustcacerts -alias emailuat -file /home/akhil/emailuat.cert -keystore cacerts
Husband, Dad & Programmer