Flex 文件上传不起作用
我现在和其他许多人一样,在 ssl 上遇到了 Flex Fileupload 问题。我只是得到一个 IOError,没有其他信息说明导致错误的原因、ssl 握手或其他信息。如何确定错误原因?我尝试使用 ';jsessionid=' 技巧,但仍然没有运气。
仅供参考,我正在本地 https 服务器上运行,并带有自签名证书。没有 ssl 一切都可以正常工作。使用 ssl,它仅适用于 IE(FF、Chrome、Safari 在 https 上失败)。使用其他浏览器,服务器甚至无法收到请求。
尼什
I have now ran into Flex Fileupload problem on ssl as many others have. I simply get an IOError, no other information as to what caused the error was given, ssl handshake or something else. How do I nail down the cause of the error? I tried using the ';jsessionid=' trick, still no luck.
FYI, I am running on local https server, with self signed cert. Everthing works fine without ssl. With ssl, it only works on IE (FF, Chrome, Safari fails on https). With other browsers, server doesn't even get the request.
Nish
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
为了使自签名证书能够与 Flex 上传程序配合使用,服务器证书必须由证书颁发机构签名,该证书颁发机构的 CA 证书随后安装在 Internet Explorer 的受信任的根证书颁发机构证书存储中。这实际上很容易实现。
从以下网页开始(1B)生成您自己的 CA(证书颁发机构):创建证书颁发机构和自签名 SSL 证书并生成您的 CA 证书和密钥。获得这些后,生成您的服务器证书和密钥。创建证书签名请求 (CSR),然后使用 CA 证书签署服务器密钥。现在像往常一样在 Web 服务器上安装服务器证书和密钥,并将 CA 证书导入到 Internet Explorer 的受信任根证书颁发机构存储(也由 Flex 上传程序和 Chrome 使用)以及每个需要的工作站上的 Firefox 证书管理器颁发机构存储中使用自签名、CA 签名的服务器密钥/证书对访问服务器。
现在,您不应看到任何有关使用自签名证书的警告,因为浏览器将在信任存储区中找到 CA 证书,并验证服务器密钥是否已由该受信任的证书签名。此外,在 Magento 等电子商务应用程序中,Flex 图像上传器现在可以在 Firefox 中运行,而不会出现可怕的“自签名证书”错误消息。
In order to make self-signed certificates work with the Flex uploader, the server certificate must be signed by a Certificate Authority whose CA Certificate is then installed in Internet Explorer's Trusted Root Certification Authorities Certificate Store. This actually is quite easy to accomplish.
Start at (1B) Generate your own CA (Certificate Authority) on this web page: Creating Certificate Authorities and self-signed SSL certificates and generate your CA Certificate and Key. Once you have these, generate your Server Certificate and Key. Create a Certificate Signing Request (CSR) and then sign the Server Key with the CA Certificate. Now install your Server Certificate and Key on the web server as usual, and import the CA Certificate into Internet Explorer's Trusted Root Certification Authority Store (used by the Flex uploader and Chrome as well) and into Firefox's Certificate Manager Authorities Store on each workstation that needs to access the server using the self-signed, CA-signed server key/certificate pair.
You now should not see any warning about using self-signed Certificates as the browsers will find the CA certificate in the Trust Store and verify the server key has been signed by this trusted certificate. Also in e-commerce applications like Magento, the Flex image uploader will now function in Firefox without the dreaded "Self-signed certificate" error message.
自签名证书不适用于非 IE 浏览器中的 Flex 文件上传。您可以在这里阅读有关此问题的更多信息: http://b-closer.blogspot.com/2010/11/how-to-get-flex-file-upload-over-ssl.html。
您唯一的解决方法是对非 IE 浏览器使用非安全上传或从 CA 购买签名证书。
Self signed certificates will not work with Flex file upload in non-IE browsers. You can read more about this problem here: http://b-closer.blogspot.com/2010/11/how-to-get-flex-file-upload-over-ssl.html.
Your only workarounds are to either use non-secure upload for non-IE browsers or to purchase a signed certificate from a CA.