简体   繁体   English

从jdk1.5迁移到jdk1.7时的证书发行

[英]Certificate issue while migrating from jdk1.5 to jdk1.7

  • I/O exception (org.apache.axis2.AxisFault) caught when processing request: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target 处理请求时捕获了I / O异常(org.apache.axis2.AxisFault):sun.security.validator.ValidatorException:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求目标的有效证书路径

After migrating from jdk 1.5 to jdk 1.7 i am getting sun.security.validator.ValidatorException. 从jdk 1.5迁移到jdk 1.7之后,我得到了sun.security.validator.ValidatorException。

Steps : Replaced jdk 1.5 with 1.7(includes jre). 步骤:用1.7(包括jre)替换了jdk 1.5。 Compile the code with jdk1.7. 用jdk1.7编译代码。 Compilation was success. 编译是成功的。 while accessing the url with the certificate provided by the server i am getting sun.security.validator.ValidatorException in jdk1.7. 使用服务器提供的证书访问URL时,我在jdk1.7中获取了sun.security.validator.ValidatorException。 But the exception is not thrown in jdk1.5. 但是在jdk1.5中没有抛出异常。 In cacerts file i have imported the specific certificate with alias name xxxx. 在cacerts文件中,我已导入别名为xxxx的特定证书。 If i access the url with the domain name as alias name in jdk1.7 name in certificate the exception is not thrown and works fine... 如果我使用证书中jdk1.7名称中的别名作为域名访问url,则不会引发异常并且可以正常工作...

Do i need to do anything for migrating jdk1.5 to jdk1.7? 将jdk1.5迁移到jdk1.7是否需要做任何事情? Do i really missing some thing in the above process? 在上述过程中我真的错过了什么吗?

Any help will be appreciated... 任何帮助将不胜感激...

Self signed certificate which was sent by server with no extensions. 服务器发送的无扩展名的自签名证书。

version of the certificate is 1. 证书的版本为1。

i am using /jdk1.7/jre/lib/security/cacerts with only jre 1.7. 我仅使用jre 1.7使用/jdk1.7/jre/lib/security/cacerts。 Also i have checked the cacerts file. 我也检查了cacerts文件。 Certificate details was updated properly. 证书详细信息已正确更新。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM