一個winform程式,監聽本地ssl連接
if (this.Lisenter.Binding.Certificate != null)
{
SslStream sslStream = new SslStream(this.SocketStream);
WX_DebugInfo.HttpLog("AuthenticateAsServer開始");
sslStream.AuthenticateAsServer(this.Lisenter.Binding.Certificate, false, SslProtocols.Tls, false);
WX_DebugInfo.HttpLog("AuthenticateAsServer結束");
this.SocketStream = sslStream;
}
sslStream.AuthenticateAsServer(this.Lisenter.Binding.Certificate, false, SslProtocols.Tls, false);
這個代碼在某些win7或者XP系統上報錯,大部分可以正常使用。
例外提示 是 a Call to SSPI Failed
內部例外是 無法連接本地安全機構。
請問誰遇到過這種問題?幫忙解答一下,多謝多謝!
uj5u.com熱心網友回復:
證書問題唄
轉載請註明出處,本文鏈接:https://www.uj5u.com/net/285079.html
標籤:C#
上一篇:HttpWebRequest post在本地測驗沒有問題,但是放到服務器上后就提示請求的格式存在錯誤或請求非法,訪問未能完成
下一篇:請問有使用VS操作過WPS的嗎?
