kinome

 

 

今天用 restTemplate 获取那种红叉的https证书(或者可能绿色证书也是),发现抛出异常:nested exception is javax.net.ssl.SSLHandshakeException

查了一下,查到了这篇:https://www.cnblogs.com/0201zcr/archive/2017/03/09/6523956.html 成功解决了问题,不仅是restTemplate,这个可以作用于tomcat整个生命周期的rest访问外部的请求方式

然后我使用了 springboot 启动类直接启动了,然后tomcat整个生命周期中都可以成功获取到https连接的页面的内容

 

分类:

技术点:

相关文章:

  • 2021-10-10
  • 2021-08-13
  • 2021-04-20
  • 2021-10-16
  • 2022-01-02
  • 2021-12-28
  • 2021-09-07
  • 2021-06-26
猜你喜欢
  • 2021-10-10
  • 2021-11-27
  • 2021-10-22
  • 2021-09-26
  • 2021-09-30
  • 2021-05-24
相关资源
相似解决方案