title: How to pass httpclienthandler to httpclientfactory explicitly?
body: <p>I thought of using HttpClientFactory but I need to attach the certificate while making a call Currently, I am using HttpClient, But don't know how to attach the certificate.<br>
  <strong>Below is the httpClient code:</strong></p>
  
  <pre><code>HttpClientHandler httpClientHandler = new HttpClientHandler
  {
      SslProtocols = SslProtocols.Tls | SslProtocols.Tls11 | SslProtocols.Tls12,
      ClientCertificateOptions = ClientCertificateOption.Manual
  };
  httpClientHandler.ClientCertificates.Add(CertHelper.GetCertFromStoreByThumbPrint(_Settings.MtlsThumbPrint, StoreName.My, _Settings.IgnoreCertValidChecking));
  
  httpClientHandler.ServerCertificateCustomValidationCallback = OnServerCertificateValidation;
  
  HttpClient _client = new HttpClient(httpClientHandler)
  {
      Timeout = TimeSpan.FromMinutes(1),
      BaseAddress = new Uri(_Settings.BaseUrl)
  };
  </code></pre>
  
  <p>So, how to convert the above httpClient to HttpClientFactory?</p>
  
  <p>Any help would be appreciated.</p>