More debugging TSL disabling

This commit is contained in:
Rick Falkvinge
2018-07-28 20:59:25 +02:00
parent d86f776d84
commit e63288c7da
2 changed files with 7 additions and 0 deletions
+5
View File
@@ -23,6 +23,11 @@ namespace Swarmops.Logic.Support
System.Net.ServicePointManager.ServerCertificateValidationCallback =
(sender, certificate, chain, sslPolicyErrors) => true;
// Further, instantiate an AesCryptoServiceProvider to make sure the linker doesn't optimize it away -- apparently
// another known bug
System.Security.Cryptography.AesCryptoServiceProvider b = new System.Security.Cryptography.AesCryptoServiceProvider();
}
public static string GenerateSecureRandomKey(int byteCount)
@@ -463,6 +463,8 @@ namespace Swarmops.Frontend.Pages.v5.Financial
using (WebClient client = new WebClient())
{
SupportFunctions.DisableSslCertificateChecks();
string receiptResource = string.Empty;
try
{