Hello everyone, would you help me to overcome this exception that's been bugging me for 2 days?
in my project there is a call to a web service of a public service, the functionality that invokes the serviziofunziona perfectly but to switch from the
test environment to "production" require client authentication using a digital certificate issued by them.
I installed without problems certificate in a custom keystore, whose path and password will be included in the 'application during installation (because it will live together with other modules but will rimanerne "wildly" separated):
now I'm trying to place the use of this keystore in the code.
I have taken two paths:
simply by setting the properties of the system with "javax.net.ssl.xxx" but it does not work, the sergeant exception is raised:
Here is the code:
and then analyzing some of the alternatives, the result of hours of "google" I tried the following with no major improvements:
so I get an exception simpler but essentially the same: