I have an axis2 client webservice working with "http" protocol, but I need to have the same implementation work with "https" (self-signed certificate on server). Please anyone suggest what is the best approach for this.
Thanks in advance,
Rashera
Printable View
I have an axis2 client webservice working with "http" protocol, but I need to have the same implementation work with "https" (self-signed certificate on server). Please anyone suggest what is the best approach for this.
Thanks in advance,
Rashera
You do not need to make any changes to your client code. Instead you could configure the trust key store at your client side (use JVM args). It is straightforward approach.
Regards
Ayyappan Gandhirajan
Hi Ayyapan,
i have similar problem.
i get the following exception when i try to call secure web service.
org.apache.axis2.AxisFault: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderE xception: unable to find valid certification path to requested target
my application will be used by many clients
can i apply the same solution what you mentioned here?
and when i load trust stores using jvm args will it work for all clients?
or will there be any problem because of jvm versions?
kindly let me know.