1

When I try to connect my application to my apache sslv3 server tidesdk reports: "SSL connect error"

var url = 'https://www.sipmeeting.com/';
var client = Ti.Network.createHTTPClient({
    onload: function(e) {
        //request complete do something with data
        //assuming that we are not working with XML
        alert('Response received '+this.responseText);
    },
    onerror: function(e) {
        //error received, do something
    }
});
client.open('GET',url,true);
client.send();

Is tidesdk sslv3 compatible? Other sites open fine like https://mail.google.com/mail

Thank you for the help!

--John

4

1 回答 1

1

万一有人在座位的边缘,我解决了这个问题。问题出在我的 apache 服务器上,我需要将 apache ssl vhost 中的 ServerName 设置为与 SSL 证书上的公用名相同。

为了调试,我打开了 ssl 调试:

ErrorLog /var/log/apache2/ssl_engine.log
LogLevel debug

当我输入时,日志中没有任何显示

curl https://www.sipmeeting.com

但 curl 会返回:

server:~ john$ curl -v https://www.sipmeeting.com
* About to connect() to www.sipmeeting.com port 443 (#0)
*   Trying 208.126.100.54...
* connected
* Connected to www.sipmeeting.com (208.126.100.54) port 443 (#0)
* SSLv3, TLS handshake, Client hello (1):
* error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112)
* Closing connection #0
curl: (35) error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112)

但是当我将 -3 添加到 curl 命令时:IE

curl -v -3 https://www.sipmeeting.com

一切都表明了。然后我推断出两个证书之间没有相关性,CN 是最有可能的。我更改了 CN,它已针对 curl 和潮汐dk 进行了修复。

谢谢!

- 约翰

于 2013-07-03T13:03:00.413 回答