From f2121a31b61ac63099416be43a1c4cee544f488e Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Sat, 18 Aug 2012 17:23:52 +0100 Subject: [PATCH] invite: also accept non-signed certificates from urls to post the public key to --- SparkleShare/SparkleInvite.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/SparkleShare/SparkleInvite.cs b/SparkleShare/SparkleInvite.cs index 3b5ceaa4..88b1471e 100644 --- a/SparkleShare/SparkleInvite.cs +++ b/SparkleShare/SparkleInvite.cs @@ -81,6 +81,10 @@ namespace SparkleShare { public bool Accept (string public_key) { + ServicePointManager.ServerCertificateValidationCallback = delegate { + return true; + }; + if (string.IsNullOrEmpty (AcceptUrl)) return true;