I am getting this exception intermittently when posting to Twitter. It works sometimes. Other times, specifically when our nightly build runs at 2AM PST, we get this error.
I have turned on network tracing. We are getting a "returned code=IllegalMessage" in the logs. Here is the relevant section from the logs. Note, Twitter does NOT require client certificates, so that is not an issue. When this call succeeds, I get"returned code=OK" and I see the Twitter SSL cert in the logs.
System.Net Information: 0 : [3876] InitializeSecurityContext(credential = System.Net.SafeFreeCredential_SECURITY, context = 5c18473730:760f4e8390, targetName = api.twitter.com, inFlags = ReplayDetect, SequenceDetect, Confidentiality, AllocateMemory, InitManualCredValidation)System.Net Information: 0 : [3876] InitializeSecurityContext(In-Buffers count=2, Out-Buffer length=0, returned code=IllegalMessage).
System.Net.Sockets Verbose: 0 : [3876] Socket#46140748::Dispose()
System.Net Error: 0 : [3876] Exception in HttpWebRequest#3781642:: - The request was aborted: Could not create SSL/TLS secure channel..
System.Net Verbose: 0 : [3876] HttpWebRequest#3781642::EndGetResponse()
System.Net Error: 0 : [3876] Exception in HttpWebRequest#3781642::EndGetResponse - The request was aborted: Could not create SSL/TLS secure channel..