Any one know how to use client cert when using the HttpClientFactory? In all the examples I've found you need to provide an HttpMessageHandler in the HttpClient constructor, which isn't available when using the HttpClientFactory
services.AddHttpClient("NamedClient", client =>
{
var handler = new HttpClientHandler();
X509Certificate2 certificate = GetMyX509Certificate();
handler.ClientCertificates.Add(certificate);
client. // ?? How do I set the handler?
});