Disabled SSL cert checking on backend, for Mono installs no root certs so everythign fails. This is so B0RKEN
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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");
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace Swarmops
|
||||
// HotBitcoinAddresses testAddresses = HotBitcoinAddresses.ForOrganization (Organization.FromIdentity (2));
|
||||
// testAddresses.UpdateBalances();
|
||||
|
||||
// BitcoinUtility.TestUnspents ("19WEHvYWG5gvPf7X3USXwS7QdFfE1dGSQF");
|
||||
// BitcoinUtility.TestUnspents("1GDV1QHQAdxxawqnvXiKhzypCSgwA4Xqts");
|
||||
|
||||
// Payouts.PerformAutomated();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user