2013-05-07 100 views
0

好的,所以我有這個服務器以https://www.octgn.net的通配證書運行。 在每個瀏覽器中,我嘗試一切工作正常,除了我有用戶有問題連接。無法從ssl站點獲取數據

這裏主要關注的是,我在我的軟件,越過SSL和它只是從來沒有工作的一些用戶API調用。這是我收集

WARN 2013-05-07 16:18:12,562 3.1.18.102 [11] Octgn.Launcher.LoginNew [(null)] - Login Request Failed 
System.Net.WebException: The underlying connection was closed: An unexpected error occurred on a receive. ---> System.IO.IOException: The decryption operation failed, see inner exception. ---> System.ComponentModel.Win32Exception: The message received was unexpected or badly formatted 
--- End of inner exception stack trace --- 
at System.Net.Security._SslStream.ProcessReadErrorCode(SecurityStatus errorCode, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest, Byte[] extraBuffer) 
at System.Net.Security._SslStream.ProcessFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) 
at System.Net.Security._SslStream.StartFrameBody(Int32 readBytes, Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) 
at System.Net.Security._SslStream.StartFrameHeader(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) 
at System.Net.Security._SslStream.StartReading(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) 
at System.Net.Security._SslStream.ProcessRead(Byte[] buffer, Int32 offset, Int32 count, AsyncProtocolRequest asyncRequest) 
at System.Net.TlsStream.Read(Byte[] buffer, Int32 offset, Int32 size) 
at System.Net.PooledStream.Read(Byte[] buffer, Int32 offset, Int32 size) 
at System.Net.Connection.SyncRead(HttpWebRequest request, Boolean userRetrievedStream, Boolean probeRead) 
--- End of inner exception stack trace --- 
at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) 
at System.Net.WebClient.DownloadString(Uri address) 
at Octgn.Launcher.LoginNew.<>c__DisplayClass14.<DoLogin>b__13() in c:\Program Files (x86)\Jenkins\workspace\OCTGN-Release\octgnFX\Octgn\Launcher\LoginNew.xaml.cs:line 269 

我的代碼看起來像這樣

using (var wc = new WebClient()) 
{ 
    try 
    { 
     Log.Info("Sending login request"); 
     var ustring = AppConfig.WebsitePath + "api/user/login.php?username=" + HttpUtility.UrlEncode(username) 
         + "&password=" + HttpUtility.UrlEncode(password); 
     if (email != null) ustring += "&email=" + HttpUtility.UrlEncode(email); 
     var res = wc.DownloadString(new Uri(ustring)); 
     res = res.Trim(); 
     Log.Info("Do Login Request Result: " + res); 
    } 
    catch(Exception e) 
    { 
     Log.Warn("Login Request Failed",e); 
     this.LoginFinished(LoginResult.Failure, DateTime.Now,"Please try again later."); 
    } 
} 

任何想法的例外呢?我不確定是否是我的錯,也許我需要將我的公鑰存入軟件,並以某種方式將其注入到我的電話中,或者用戶計算機設置爲有趣或其他方式?

種種跡象表明,我能得到的是我的SSL是正確的,我不從大量的用戶得到這個,但它發生每一次少數,而我不知道什麼是錯在這裏。

更多信息:從用戶

報價 「Internet Explorer無法顯示該網頁」。

上其他瀏覽器工作正常,雖然「

此外,另一個報價

這裏是我的SSL測試結果的截圖:http://tinypic.com/view.php?pic=l9wtu&s=5

我已經嘗試添加HTTPS: //*.octgn.net到IE瀏覽器。似乎不有所作爲。

如果有幫助,它說,我不能retri在登錄頁面也是新聞頭條。

的新聞標題是服務器上的XML文檔以及

而且調用服務器上的應用程序是一個客戶端應用程序,它不是一個瀏覽器應用程序。

+0

檢查,如果有特殊字符/逃避用戶名/密碼/電子郵件序列可能導致編碼的問題? – jbl 2013-05-07 07:32:10

+0

我沒有想過檢查一下,但也看看我最近添加的帖子。 – 2013-05-07 07:34:30

+0

是的,通過的數據只有字母和數字 – 2013-05-08 17:20:42

回答