'Ocelot client certificate authentication on downstream

I'm creating an Api Gateway with Ocelot. I need to give a client certificate in order to authenticate to the downstream microservices. I actually implemented some code in order to do this. I've added a DelegateHandler which iterates on all the InnerHandler until a HttpRequestHandler is found. Than I add mi client certificate. Is there a better way for doing this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source