Mono https authentication or decryption has failed
<p>I am trying to access a REST API located at an HTTPS address. I always get "authentication or decryption failure". I have already tried every different solution that I could find at both xamarin forums, Mono pages and Stack Overflow and no success at all. I've tried all changes to code for ignoring errors and I have tried importing certificates using mozroots and certmgr, importing for both user and machine in all of their different stores (CA, Trust and AddressBook).</p>

<p>I tried at both Visual Studio 2015 on Windows 10 and Xamarin Studio on Mac OS El Capitan.</p>

<p>I'm getting really frustrated for not being able to accomplish such a basic task as accessing a REST API.</p>

<p>I just need to access the following location: <a href="https://api.wearefero.com/api/v1/activity" rel="nofollow">https://api.wearefero.com/api/v1/activity</a> (it's okay if you get 401, as it needs token authentication and it got through the certificates check).</p>

<p>If you succeed on not getting an error please let me know what did you do (preferably paste your configs here).</p>

<p>Below you can find a basic TlsTest run output I always get.</p>

<p>Thanks a lot!</p>

<pre><code>FAILED: #-2146233079
System.Net.WebException: Error: SendFailure (Error writing headers) ---&gt; System.Net.WebException: Error writing headers ---&gt; System.IO.IOException: The authentication or decryption has failed. ---&gt; Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.
at Mono.Security.Protocol.Tls.RecordProtocol.EndReceiveRecord (IAsyncResult asyncResult) &lt;0x4678ad8 + 0x000e3&gt; in :0 
at Mono.Security.Protocol.Tls.SslClientStream.SafeEndReceiveRecord (IAsyncResult ar, Boolean ignoreEmpty) &lt;0x4678a30 + 0x0001f&gt; in :0 
at Mono.Security.Protocol.Tls.SslClientStream.NegotiateAsyncWorker (IAsyncResult result) &lt;0x4676088 + 0x0019b&gt; in :0 
--- End of inner exception stack trace ---
at System.Net.WebConnection.EndWrite (System.Net.HttpWebRequest request, Boolean throwOnError, IAsyncResult result) &lt;0x4679db0 + 0x00183&gt; in :0 
at System.Net.WebConnectionStream+c__AnonStorey1.&lt;&gt;m__0 (IAsyncResult r) &lt;0x46797f8 + 0x000eb&gt; in :0 
--- End of inner exception stack trace ---
--- End of inner exception stack trace ---
at System.Net.HttpWebRequest.EndGetResponse (IAsyncResult asyncResult) &lt;0x2d37aa0 + 0x00187&gt; in :0 
at System.Net.HttpWebRequest.GetResponse () &lt;0x2d31eb8 + 0x0004c&gt; in :0 
at TlsTest.GetWebPage (System.String url) &lt;0x6d9fa8 + 0x00273&gt; in :0 
at TlsTest.Main (System.String[] args) &lt;0x6d61c8 + 0x00583&gt; in :0
</code></pre>