Disabled SSL cert checking on backend, for Mono installs no root certs so everythign fails. This is so B0RKEN

This commit is contained in:
Rick Falkvinge
2016-01-07 22:38:51 +01:00
parent 1a7c4aab34
commit ce224ddd40
3 changed files with 7 additions and 3 deletions
+6
View File
@@ -160,6 +160,12 @@ namespace Swarmops.Backend
BotLog.Write(0, "MainCycle", "Backend STARTING");
// Disable certificate checking due to Mono not installing with a certificate repository - this is UTTERLY broken
SupportFunctions.DisableSslCertificateChecks(); // MONO BUG/MISFEATURE: Mono has no root certificates, so can't verify cert
// Tell sysop we're starting
OutboundComm.CreateNotification (null, NotificationResource.System_Startup);
// Check for existence of installation ID. If not, create one. Warning: has privacy implications when communicated.
-2
View File
@@ -41,8 +41,6 @@ namespace Swarmops.Logic.Financial
{
using(WebClient client = new WebClient())
{
SupportFunctions.DisableSslCertificateChecks(); // MONO BUG/MISFEATURE: Mono has no root certificates, so can't verify cert
client.Encoding = Encoding.UTF8;
string rateDataRaw = client.DownloadString("https://bitpay.com/api/rates");
+1 -1
View File
@@ -41,7 +41,7 @@ namespace Swarmops
// HotBitcoinAddresses testAddresses = HotBitcoinAddresses.ForOrganization (Organization.FromIdentity (2));
// testAddresses.UpdateBalances();
// BitcoinUtility.TestUnspents ("19WEHvYWG5gvPf7X3USXwS7QdFfE1dGSQF");
// BitcoinUtility.TestUnspents("1GDV1QHQAdxxawqnvXiKhzypCSgwA4Xqts");
// Payouts.PerformAutomated();