title: Can´t find installed but expired certificate?
body: <p>One of my certificates have been expired. This makes the following code fail : </p>
  
  <pre><code> X509Store store = new X509Store(settings.CertificateStore, settings.CertificateLocation);
              store.Open(OpenFlags.ReadOnly);
              X509Certificate2Collection certs = store.Certificates.Find(X509FindType.FindByThumbprint, settings.Thumbprint, true);
              store.Close();
  
              if (certs.Count &gt; 0)
              {
                  LogHandler.Instance.Log(LogLev.Info, $"UseSecureConnection &gt; Location:{settings.CertificateLocation}, Store:{settings.CertificateStore}, Thumbprint:{settings.Thumbprint}");
                  _serviceHost.Credentials.ServiceCertificate.SetCertificate(settings.CertificateLocation,
                  settings.CertificateStore, X509FindType.FindByThumbprint, settings.Thumbprint);
  
              }
              else
                  throw new Exception("Could not find certificate with thumbprint " + settings.Thumbprint);
  </code></pre>
  
  <p>This codes worked great uptil certificate got expired.</p>
  
  <p>How do i fetch it even if its expired?</p>