How to call REST Service with individual outgoing client certificates

0
Hi,    we need to call REST API GET calls, each with a different outgoing client certificate (each endpoint has it´s own client certificate). I know where to add client certificates in the Mendix Portal (Environments -> Network) BUT how can tell the REST Service to use a specific certificate?    I see that there is a field called "Client Certificate -> Overrride" in the Call REST Service/General widget to be used in the Microflow. Should I add it there? And what is then meant by "client certificate identifier" ?   Thanks for help, Timo    
asked
2 answers
1

I found the following answer to the problem:

 

1. Add the outgoing certificate

Solution1_OutgoingConnectionsCertificates.png

 

2. Assign a "New" Web Service Call Name with Identifier "Test"  

Solution2_AddNew WebServiceCallNamepng.png

 

Solution3_PinClientVertificteForSpecificService.png

 

3. Assign Identifier "Test" in Call REST Service - Client certificate "Override" 

 

 

 

Solution4_AddIdentifierFromMendixPortal.png

 

The REST Call Service uses the outgoing certificate :-)

answered
0

Hi Timo,

 

Personally, I haven't experienced that the negotiation failed, as Mendix automatically selected the correct client certificate.

The Mendix documentation shows how to configure this. Depending on what deployment model you use (locally, on-premise, private cloud, public cloud), you can configure it differently by linking the client certificate to the service you call.

See more info here: https://docs.mendix.com/developerportal/deploy/use-a-client-certificate/

 

Good luck!

answered