雖然調整Web代理代碼,我發現,如果我跑與UAC(用戶訪問控制)的應用程序代碼中,我得到一個異常爲什麼sslStream.AuthenticateAsServer不需要UAC和替代
這裏是位置在異常被拋出:
sslStream.AuthenticateAsServer(_certificate, false, SslProtocols.Tls | SslProtocols.Ssl3 | SslProtocols.Ssl2, false);
以下是錯誤我得到(與UAC)
The server mode SSL must use a certificate with the associated private key.
第一個問題:爲什麼呢?
第二個問題:是否有替代方案?我真的想在UAC中運行這個(請注意,http工作正常)
這是一個複製? http://stackoverflow.com/questions/23044914/c-sharp-ssl-server-mode-must-use-a-certificate-with-the-corresponding-private-ke – Christoph