当前位置:   article > 正文

https 客户端和服务器的证书必须是同一个_前端访问另一台机器的后端 证书需要一致么

前端访问另一台机器的后端 证书需要一致么

如果用相同的命令(完全一样)生成的俩证书,一个在客户端使用, 一个在服务器端调用

那么在验证的过程中也会失败

  1. sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: signature check failed
  2. at sun.security.validator.PKIXValidator.doValidate(PKIXValidator.java:350)
  3. at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:260)
  4. at sun.security.validator.Validator.validate(Validator.java:260)
  5. at sun.security.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:326)
  6. at sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:231)
  7. at sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:107)
  8. at snippet.Snippet$MyX509TrustManager.checkServerTrusted(Snippet.java:87)
  9. at sun.security.ssl.AbstractTrustManagerWrapper.checkServerTrusted(SSLContextImpl.java:885)
  10. at sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:142
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/木道寻08/article/detail/811902
推荐阅读
  

闽ICP备14008679号