java - 如何使用 Spring Boot RestTemplate 调用受 SSL 保护的 api
问题描述
我正在尝试使用 spring RestTemplate 调用受 SSL 保护的 api。不幸的是,我收到以下错误。我究竟做错了什么?
org.springframework.web.client.ResourceAccessException: I/O error on GET request for "https://thedomaintocall.com": java.security.cert.CertificateException: No name matching thedomaintocall found; nested exception is javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: No name matching thedomaintocall found
解决方案
推荐阅读
- flutter - Flutter web 是否应该使用 Wasm 而不是 dart2js
- apktool - 如何修复apktool重新编译错误?
- django - SessionNotCreatedException at / Message: 找不到匹配的功能集
- githooks - 如何使用githooks检查提交的第一个字母是否为大写
- r - 由多个实际参数匹配的形式参数“ylab”
- amazon-web-services - 如何使用 kops 将实例组中的节点缩小到零?
- excel - 如果给定列中的值大于 0,如何将行的不一定连续的部分复制到另一个工作表?
- python - 将RGB图像转换为黑白PIL手部识别
- docker - 将 Kubernetes 集群与 Docker 网络互连
- python - 大数据框上的 Pandas GroupBy