さてさて、私は次のコードを使用しています:私はこれがちょうどSSL背後のセキュリティを無視することを十分に承知していますが、私はちょうどこの私のUbuntuの上で作業を得ることができないようC#モノラルのSSL問題
ServicePointManager.SecurityProtocol = SecurityProtocolType.Ssl3 | SecurityProtocolType.Tls | SecurityProtocolType.Tls11 | SecurityProtocolType.Tls12;
ServicePointManager.ServerCertificateValidationCallback += (send, cert, chain, sslPolicyErrors) => true;
string dlclresponse = "";
try
{
WebRequest wr = WebRequest.Create(url);
Stream stream = wr.GetResponse().GetResponseStream();
Debug.WriteLine("HTTPDEBUG:" + " Success");
dlclresponse = new StreamReader(stream).ReadToEnd();
}
catch (WebException we)
{
var ex = we as Exception;
while (ex != null)
{
Debug.WriteLine("HTTPDEBUG:" + ex.ToString());
ex = ex.InnerException;
}
}
をサーバーはモノラルを使用します。
機能していないURLは以下の通りです:
https://atarashii.toshocat.com/2.1/anime/schedule
それは私にこの例外を与え続け:
System.Net.WebException: Error: SendFailure (Error writing headers) ---> System.Net.WebException: Error writing headers ---> System.IO.IOException: The authentication or decryption has failed. ---> Mono.Security.Protocol.Tls.TlsException: The authentication or decryption has failed.
私は束をやめ読んだけど、正直なところ、私は理解していませんその多く。
私は間違っていますか?このソリューションに見られる答えのほとんどは上記のようなものですが、クラッシュするだけです。私はここからすべてについて、複数を試してみました:
Mono https webrequest fails with "The authentication or decryption has failed"
しかし、どれも何かをするように見えたん;(
を現時点では、私は本当にこれが一瞬で解決不可能な感じので、それはハックカール使用する潜んでいます。 。
私は多分あなたの1が私を助けることができる別のアイデアを持っているかもしれません願っています。事前に
ありがとう!