在Flex 4中使用HTTPS Web服务 [英] Consuming HTTPS Webservice in Flex 4

查看:496
本文介绍了在Flex 4中使用HTTPS Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Adobe Flash Builder中使用一个HTTPS web服务。



当我添加URL时,出现以下错误:


在服务
自省过程中发生错误。 WSDLException:
faultCode = OTHER_ERROR:无法在
解析导入文档$ https://172.21.17.235:9443/testehttpsWeb/sca/testeIOExport1/WEB-INF/wsdl/testehttps_testeIOExport1.wsdl '。:
javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException:
PKIX路径构建失败:
sun.security.provider.certpath.SunCertPathBuilderException:
无法找到有效的证书
请求的目标路径

如何配置我的客户端使用Web服务

解决方案



解决方案是将证书导入到JKS信任库,但是导入到cacarets文件中,在我的情况下:
$ b keytool -import -alias trusted1 -keystoreC:\ Program Files(x86)\Adobe\\Adobe Flash Builder 4\jre\lib\security\cacerts-fi le c:\somepath\mycert.cer



在这种情况下,不需要添加:

-Djavax.net.ssl.trustStore =c:\somepath\truststore.jks



导入的注意事项是,DNS服务器必须能够通过名称而不是IP来转换Web服务路径,因为在已安装的证书CN提到Web服务器名称不是IP



问候


I'm trying to consume one HTTPS webservice in Adobe Flash Builder.

when I add the URL I get this error:

There was an error during service introspection. WSDLException: faultCode=OTHER_ERROR: Unable to resolve imported document at 'https://172.21.17.235:9443/testehttpsWeb/sca/testeIOExport1/WEB-INF/wsdl/testehttps_testeIOExport1.wsdl'.: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

How can I configure my client to consume the Webservice?

解决方案

We will have to buy ice cream to the person that figured this out!

The solution was to import the certificate not to a JKS truststore, but to the cacarets file, in my case:

keytool -import -alias trusted1 -keystore "C:\Program Files (x86)\Adobe\Adobe Flash Builder 4\jre\lib\security\cacerts" -file c:\somepath\mycert.cer

In this case there is no need to add the:

-Djavax.net.ssl.trustStore="c:\somepath\truststore.jks"

...line on FlashBuilder.ini

An imported note is that the DNS Server must be able to translate the Web Service path by name instead of by IP, because in the installed certificate the CN mentions the Web Service server name not it's IP

Regards

这篇关于在Flex 4中使用HTTPS Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆