2013-05-07 58 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

回答