public void UseClientCertificate(X509Certificate2 cert) { _log.DebugFormat("Was a certificate given? {wasGiven}", cert != null); _log.DebugFormat("Certificate CN={cn}", (cert == null ? string.Empty : cert.FriendlyName)); _certificate = cert; }