Conditional 2-Way SSL connection to a backend service

Not applicable

I have two target endpoints for the same proxy. One target endpoint is default and the url gets build dynamically. The second target endpoint has a defined URL which I am using an assignMessage policy to set in order to override the default URL (this flow is conditional).

What I want to do is set up a 2-way SSL connection to that conditional target endpoint. The documentation that I have seen so far talks about modifying the HTTPTargetEndPoint info in 'default'. But I don't want SSL connection for all target endpoint .. I just want it for that conditional flow.

How can I do this in my assignMessage policy?

0 1 319
1 REPLY 1

SSL/TLS configuration can be added to a HTTPTargetEndPoint or a TargetServer. You can assign a target URL dynamically but enabling 2 way TLS can be arranged differently.

Create a second TargetEndPoint with 2 way TLS enabled and use RouteRule to pick a TargetEndpoint that matches your conditional flow.

https://docs.apigee.com/api-services/content/understanding-routes#determiningtheurlofthetargetendpoi...