as3crypto 中的 SSL (TLS)

SSL (TLS) in as3crypto

我在 Adob​​e Air 应用程序中遇到了一些关于 SSL(HTTPS 调用)的问题。 Adobe 的列表中有一个错误,它与我遇到的问题完全相同:- https://forums.adobe.com/thread/1116924

推荐的解决方案(除非 Adob​​e 修复此问题 - 他们已经 2 年多没有这样做了)是使用 as3crypto 的 SSL。

这里有人能帮我吗?现在,我的 HTTPService 使用默认内置的 Adob​​e SSL 功能,看起来像:-

var params:Object = getPOSTParameters();
var _httpservice:HttpService = new HTTPService();
            _httpservice.url = "https://myserver_url";
            _httpservice.resultFormat = "text";
            _httpservice.contentType="application/x-www-form-urlencoded";
            _httpservice.method = "POST";
            _httpservice.concurrency = "multiple";
            _httpservice.requestTimeout=600000;
            _httpservice.showBusyCursor = false;
            _httpservice.addEventListener(IOErrorEvent.IO_ERROR, httpIOError);
            _httpservice.addEventListener(HTTPStatusEvent.HTTP_RESPONSE_STATUS, httpResponseStatus);
var responder:Responder = new Responder(onResult, onError);
            var token:AsyncToken = _httpservice.send(params);
            token.addResponder(responder);

我应该如何使用 as3crypto 实现相同的功能?任何示例/代码指针都会非常有用

没有 100% 有效的解决方案,至少我不知道。当我在 Adob​​e Flash 中需要 https 时,我使用了 as3httpclient 库,其中 AS3Crypto 用于实现 TLSSocket。这比自己编写要容易得多。但要注意它有问题并且在某些情况下不起作用。

编辑: 有可用的文档 here 对我来说就足够了,http 和 https 请求之间没有区别(URL 除外)。