Actionscript 3 代码NetConnection.Connect.sslhandshake在我的RED5服务器中失败
我有一个与flash Professional CC一起发布的AS3 flash,是为flash Player13发布的 问题是:当我创建到我的RTMP服务器(RED5 v1.1)的网络连接时,我获得了以下错误消息:NetConnection.Connect.SSLHandshakeFailed 我使用的代码如下所示:Actionscript 3 代码NetConnection.Connect.sslhandshake在我的RED5服务器中失败,actionscript-3,ssl,red5,netconnection,rtmps,Actionscript 3,Ssl,Red5,Netconnection,Rtmps,我有一个与flash Professional CC一起发布的AS3 flash,是为flash Player13发布的 问题是:当我创建到我的RTMP服务器(RED5 v1.1)的网络连接时,我获得了以下错误消息:NetConnection.Connect.SSLHandshakeFailed 我使用的代码如下所示: nc = new NetConnection(); nc.objectEncoding = ObjectEncoding.AMF3; nc.client = this; nc.p
nc = new NetConnection();
nc.objectEncoding = ObjectEncoding.AMF3;
nc.client = this;
nc.proxyType = "best";
nc.addEventListener(NetStatusEvent.NET_STATUS, netSAServerRTMPStatus);
nc.connect("rtmps://myappserver.mydomain.com/myApp", myChannel);
private function netSAServerRTMPStatus(event:NetStatusEvent):void
{
trace(event.info.code);
}
如果我没有设置proxyType或将其设置为任何其他选项,则永远不会建立连接,但如果我将其设置为“最佳”,我有时可以创建连接,但不总是这样
在我的服务器中,我有一个由Geo Trust Inc.签署的SSL证书,它的通用名(CN)=*.mydomain.com
有人能帮我吗?如果需要的话,我可以提供更多的信息
致以最良好的祝愿,
Pimager当ssl调试失败时,您可以启用ssl调试以获取更多详细信息;将此条目添加到JAVA_选项:
-Djavax.net.debug=ssl
-Dsun.security.ssl.allowUnsafeRenegotiation=true -Dsun.security.ssl.allowLegacyHelloMessages=true
然后,您将在日志中看到如下条目:
javax.net.ssl.SSLHandshakeException: Client requested protocol TLSv1 not enabled or not supported
和/或
Exception caught on session: 1 id: EPP7XKEM0XUWC javax.net.ssl.SSLHandshakeException: SSL handshake failed.
在所示的案例中,客户请求TLSv1,但被拒绝
更新
您可以测试的另一件事是通过red5.sh中的参数启用遗留内容;将以下内容添加到JAVA_选项中:
-Djavax.net.debug=ssl
-Dsun.security.ssl.allowUnsafeRenegotiation=true -Dsun.security.ssl.allowLegacyHelloMessages=true
您可以找到有关这些参数的信息。当ssl调试失败时,您可以启用ssl调试以获取更多详细信息;将此条目添加到JAVA_选项:
-Djavax.net.debug=ssl
-Dsun.security.ssl.allowUnsafeRenegotiation=true -Dsun.security.ssl.allowLegacyHelloMessages=true
然后,您将在日志中看到如下条目:
javax.net.ssl.SSLHandshakeException: Client requested protocol TLSv1 not enabled or not supported
和/或
Exception caught on session: 1 id: EPP7XKEM0XUWC javax.net.ssl.SSLHandshakeException: SSL handshake failed.
在所示的案例中,客户请求TLSv1,但被拒绝
更新
您可以测试的另一件事是通过red5.sh中的参数启用遗留内容;将以下内容添加到JAVA_选项中:
-Djavax.net.debug=ssl
-Dsun.security.ssl.allowUnsafeRenegotiation=true -Dsun.security.ssl.allowLegacyHelloMessages=true
您可以找到有关这些参数的信息