개발
[Java] Spring RestTemplate 에서 인증서 유효성 검사 안 함
SSL 통신 시 ReRestTemplate 사용 할 때 인증서 유효성 체크 안하게 하는 로직이다. private RestTemplate makeRestTemplate() throws KeyStoreException, NoSuchAlgorithmException, KeyManagementException { TrustStrategy acceptingTrustStrategy = (X509Certificate[] chain, String authType) -> true; SSLContext sslContext = org.apache.http.ssl.SSLContexts.custom() .loadTrustMaterial(null, acceptingTrustStrategy) .build(); SSLConnecti..