【发布时间】: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