【问题标题】:2032 Flex error while contacting HTTPS REST services2032 联系 HTTPS REST 服务时出现 Flex 错误
【发布时间】:2015-06-16 19:39:04
【问题描述】:

我不熟悉使用 flex/actionscript 代码。我正在从我的 flex/actionscript 代码进行 GET/HTTPS REST 服务调用。 这是我的代码

  var service:HTTPService = new HTTPService();
        service.url = "https://wsexample/v2/";
        service.method = "GET";
        service.addEventListener("result", serviceResult);
        service.addEventListener("fault", serviceFault);
        service.send();

这是一个 HTTPS 服务调用,我收到以下错误:

faultCode:Server.Error.Request faultString:'HTTP request error' 
faultDetail:'Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032"].
 URL: https://wsexample/v2/'

当我从 chrome 浏览器打开 HTTPS URL 时,我收到 NET::ERR_CERT_AUTHORITY_INVALID 错误和以下信息:

This server could not prove that it is wsexample; its security certificate 
is not trusted by your computer's operating system. 
This may be caused by a misconfiguration or an attacker intercepting your connection.

然后我单击此链接 -> 继续执行 wsexample(不安全)。完成此操作后,REST Web 服务调用似乎可以在我的 flex 应用程序中正常工作。

非常感谢任何帮助。

谢谢

【问题讨论】:

  • 证书说明了什么?是发给wsexample的吗?由受信任的权威机构发布?当前有效(即未过期)?如果您解决证书问题,这个问题肯定会消失。

标签: actionscript-3 rest apache-flex ssl https


【解决方案1】:

如何在运行应用程序的机器上配置弹性服务?确保您的 flex 编译器文件具有正确的设置。除此之外,我会检查以确保 Windows 防火墙设置为您的应用程序设置了规则。最后,确保 IIS 设置为信任来自您的应用程序的连接。听起来您确实存在生成警报的安全权限问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-12-16
    • 1970-01-01
    • 1970-01-01
    • 2017-02-20
    • 1970-01-01
    相关资源
    最近更新 更多