首页 > 解决方案 > 如何使用 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

标签: javaspringjhipster

解决方案


推荐阅读