using System.Net.Security;
using System.Security.Cryptography.X509Certificates;

namespace Com.Bocom.OpenApi
{
    namespace Utils
    {
        public class TrustAllCertificatePolicy
        {
            public static void SetCertificatePolicy()
            {
                System.Net.ServicePointManager.ServerCertificateValidationCallback += RemoteCertificateCalidate;
            }


            public static bool RemoteCertificateCalidate(object sernder, X509Certificate cert, X509Chain chain,
                SslPolicyErrors error)
            {
                return true;
            }
        }
    }
}