2018-05-22 10:11:50 +02:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System.Linq;
|
|
|
|
using System.IO;
|
|
|
|
using System.Net;
|
|
|
|
using System.Net.Security;
|
|
|
|
using System.Security.Cryptography.X509Certificates;
|
|
|
|
using System.Net.Http;
|
|
|
|
using System.Text;
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
2018-12-15 22:07:29 +01:00
|
|
|
namespace Core.Helper
|
|
|
|
{
|
|
|
|
public static class CertificateHelper
|
|
|
|
{
|
2018-05-22 10:11:50 +02:00
|
|
|
|
2018-12-15 22:07:29 +01:00
|
|
|
public static bool AllwaysGoodCertificate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors policyErrors)
|
|
|
|
{
|
2018-05-22 10:11:50 +02:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|