无法为 Exchange EWS 生成代理类:无法找到请求目标的有效证书路径
我想为 EWS 生成代理类 (http ://msdn.microsoft.com/en-us/library/dd877045%28v=exchg.140%29.aspx)。
keytool -keystore t:\my.keystore -storepass password -import -trustcacerts -alias MY-CA -file t:\MY-CA.crt
keytool -keystore t:\my.keystore -storepass password -list
set VMARGS=-Djavax.net.debug=all
set VMARGS=%VMARGS% -Djavax.net.ssl.trustStore=t:\my.keystore -Djavax.net.ssl.trustStorePassword=password
wsimport https://mail.xxxx.co.jp/ews/Exchange.asmx
但我收到此错误消息:
[ERROR] sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
I want to generate a proxy class for EWS (http://msdn.microsoft.com/en-us/library/dd877045%28v=exchg.140%29.aspx).
keytool -keystore t:\my.keystore -storepass password -import -trustcacerts -alias MY-CA -file t:\MY-CA.crt
keytool -keystore t:\my.keystore -storepass password -list
set VMARGS=-Djavax.net.debug=all
set VMARGS=%VMARGS% -Djavax.net.ssl.trustStore=t:\my.keystore -Djavax.net.ssl.trustStorePassword=password
wsimport https://mail.xxxx.co.jp/ews/Exchange.asmx
But I get this error message:
[ERROR] sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试:
wsimport 似乎没有选择 VMARGS。
如果上述有效,则证明是结论性的。否则,问题是您将错误的 RootCA 添加到密钥库中,或者密钥库未被读取
Try:
It would appear that VMARGS is not being picked up by wsimport.
If the above works then proof conclusive. Otherwise the issue is either you have the wrong RootCA added to your keystore or the keystore is not being read
我可以确认这对于 JDK1.6.0u29 仍然是一个问题
当运行以下命令时:
我收到以下错误:
但我找到了执行以下命令的解决方法:
I can confirm this is still an problem for JDK1.6.0u29
When running the following command:
I got the following error:
But I found a workaround to execute the following command: