Beispiel #1
0
        public void NotifyAddCertificateExemption(string host, string certHash, bool isTrusted)
        {
            m_logger.Info("Sending certificate exemption");

            var msg = new CertificateExemptionMessage(host, certHash, isTrusted);

            PushMessage(msg);
        }
        public void AddSslCertificateExemptionRequest(CertificateExemptionMessage msg)
        {
            foreach(var certExemption in SslCertificateExemptions)
            {
                if(certExemption.Host == msg.Host && certExemption.CertificateHash == msg.CertificateHash)
                {
                    return;
                }
            }

            SslCertificateExemptions.Add(new SslExemptionInfo()
            {
                CertificateHash = msg.CertificateHash,
                Host = msg.Host
            });
        }
Beispiel #3
0
 public CertificateExemptionEventArgs(CertificateExemptionMessage msg)
 {
     Host             = msg.Host;
     CertificateHash  = msg.CertificateHash;
     ExemptionGranted = msg.ExemptionGranted;
 }
Beispiel #4
0
        public void TrustCertificate(string host, string certificateHash)
        {
            var msg = new CertificateExemptionMessage(host, certificateHash, true);

            PushMessage(msg);
        }