프로그래밍/자바

자바에서 javax.net.ssl.SSLHandshakeException: Remote host terminated the handshake

do121 2024. 2. 8. 16:41
            System.setProperty("https.protocols", "TLSv1.2");

            URL url = new URL(imageUrl);
            try (InputStream in = url.openStream()) {

 

 URL url = new URL(imageUrl);로 선언하기 전에

 

System.setProperty("https.protocols", "TLSv1.2"); ===> 추가하기