Ejemplo n.º 1
0
 public void CheckServerTrusted(X509Certificate[] chain, string authType)
 {
     try
     {
         defaultTrustManager.CheckServerTrusted(chain, authType);
     }
     catch (CertificateException)
     {
         localTrustManager.CheckServerTrusted(chain, authType);
     }
 }
Ejemplo n.º 2
0
        public void CheckServerTrusted(Java.Security.Cert.X509Certificate[] certificates, string authType)
        {
            System.Diagnostics.Debug.WriteLine("In CustomX509TrustManager.CheckServerTrusted");

            try
            {
                defaultTrustManager.CheckServerTrusted(certificates, authType);
                System.Diagnostics.Debug.WriteLine($"defaultTrustManager trusted");
            }
            catch (CertificateException)
            {
                System.Diagnostics.Debug.WriteLine("defaultTrustManager did not trust");
                System.Diagnostics.Debug.WriteLine("CustomX509TrustManager does (after some checks)");
            }
        }
Ejemplo n.º 3
0
 public static void checkServerTrusted(this IX509TrustManager manager, X509Certificate[] chain, string authType)
 {
     manager.CheckServerTrusted(chain, authType);
 }