I am trying to consume a REST service on a remote machine which issued a client certificate in pfx-format for my convenience. I have imported the certificate, and the root-certificate, in the project settings of my app.
When executing the REST call the system returns a HTTP403 response with the message "No client certificate supplied!".
I have tried both the certificates tab in the project settings, as well as the custom settings in the project configuration. Both give the same result.
The same REST service with the same certificate results in a HTTP200 when called from Postman.
Is there anything else I should do besides import the certificate? Should I import it on my windows environment (tried that too)? Or in the java keystore (tried and failed)?
==========================
Edit: So far I have tried importing the client certificate pfx file directly in the certificates tab of my app's projects settings (still running in development on my local machine) and indirectly through the custom settings following this document: https://docs.mendix.com/howto/integration/use-a-client-certificate.
Both scenario's result in the same error:
unable to find valid certification path to requested target
Caused by:
java.security.PrivilegedActionException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at com.mendix.integration.util.PrivilegedUtil$.withPrivileged(PrivilegedUtil.scala:16)
I am starting the wonder if the pfx file I received from the server is incorrect, if that's even possible. If so, how can I verify this?