๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
Java

[Java] javax.net.ssl.SSLHandshakeException: connection during handshake

by cheezzz 2022. 3. 23.
๋ฐ˜์‘ํ˜•

์˜ค๋ฅ˜ ๋‚ด์šฉ
javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

์›์ธ
์„œ๋ฒ„์™€ ํด๋ผ์ด์–ธํŠธ์˜ SSL/TLS ๋ฒ„์ „์ด ๋งž์ง€ ์•Š์•„ ๋ฐœ์ƒ

๊ณผ๊ฑฐ Tomcat jdk 1.6๋ฒ„์ „ ์‚ฌ์šฉํ–ˆ์„๋•Œ ์„œ๋ฒ„ arguments์— '-Dhttps.protocols=TLSv1'๋ฅผ ์ถ”๊ฐ€ํ–ˆ์—ˆ์Šต๋‹ˆ๋‹ค.

๋ฐฉ์•ˆ
System.setProperty("https.protocols", "TLSv1.2"); ์ฝ”๋“œ์— ์ถ”๊ฐ€


ํ˜„์žฌ๋Š” Tomcat jdk 1.8์„ ์‚ฌ์šฉํ•˜์—ฌ '-Dhttps.protocols=TLSv1'๋ฅผ ์‚ญ์ œํ•ด์ฃผ์—ˆ๋”๋‹ˆ ์ •์ƒ ๋™์ž‘ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

 

์ฐธ๊ณ : https://sagittariusof85s.tistory.com/158

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€