I am building a JAVA web service client in which i connect to a service.
This service has a ssl certificate verification.
How to call this service using ssl cert
All you need to do is injecting the server root certificate to your JDK/JRE environments by using the following command line: -
keytool -importcerts -trustcacerts -file -alias -keystore
The default [your_keystore] is
1. /jre/lib/security/cacerts
2. /lib/security/cacerts
The default password is changeit.
When you call the web service, just mention the
"https://:/Path/To/Services"
I hope this may help to achieve your requirement.
Regards,
Charlee Ch.