Пример #1
0
    // Token: 0x06000098 RID: 152 RVA: 0x00009AE0 File Offset: 0x00007CE0
    public bool method_0(object object_0, X509Certificate x509Certificate_0, X509Chain x509Chain_0, SslPolicyErrors sslPolicyErrors_0)
    {
        string host           = ((HttpWebRequest)object_0).Host;
        string certHashString = x509Certificate_0.GetCertHashString();

        if (Debugger.IsAttached)
        {
            return(true);
        }
        if (Class158.smethod_3().ToUpper().Contains(certHashString.ToUpper()))
        {
            return(true);
        }
        if (this.bool_0)
        {
            if (!x509Certificate_0.Issuer.Contains("Let's Encrypt Authority X3") && !x509Certificate_0.Issuer.Contains("DigiCert SHA2 High Assurance Server CA"))
            {
                GClass3.smethod_0(certHashString, "SSL");
                return(false);
            }
            return(true);
        }
        else
        {
            if (host.Contains("supreme"))
            {
                return(true);
            }
            GClass3.smethod_0(certHashString, "SSL");
            return(host.Replace("www.", string.Empty) == "supremenewyork.com" && x509Certificate_0.Issuer == "CN=GlobalSign CloudSSL CA - SHA256 - G3, O=GlobalSign nv-sa, C=BE");
        }
    }