【发布时间】:2018-12-20 03:58:07
【问题描述】:
我尝试了许多来自网络的解决方案。但似乎没有任何解决方案适合我。
我们最近将 tomcat 服务器 8.0.x 升级到了 8.5.x。使用 8.0.x 一切正常。但是升级后,当我们尝试使用 https 从 java 的 Spring restTemplate 连接到服务器时,我们遇到了这个错误。
通过 http 连接时我没有看到任何错误。
":java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext);
nested exception is java.net.SocketException: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: sun.security.ssl.SSLContextImpl$DefaultSSLContext)
【问题讨论】:
-
是的。我已经看到了。但我的问题是它在 tomcat 8.0 上运行良好,而在 tomcat 8.5.x 上运行失败。无法理解我错过了什么。
标签: java tomcat https keystore resttemplate