'Need to pass a certificate do reference a WebService

I need to access the wsdl from a webservice, but i need to pass a valid x509Certificate2. How I do this on Visual Studio 2022 for a net core web application?



Sources

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

Source: Stack Overflow

Solution Source