簡體   English   中英

apache客戶端和rest模板的Https連接問題

[英]Https Connection Issue with apache client and rest template

我嘗試了stackoverflow中提到的所有解決方案,但似乎沒有任何效果。 我需要一些精確的解決方案來解決這個問題? 不要標記已經回答或重復,因為我已經用盡了google和stackoverflow中提到的所有解決方案

2018-05-17 11:42:10,981 main DEBUG LoggerContext[name=15d56d5, org.apache.logging.log4j.core.LoggerContext@110e3b5] started OK.
trustStore is: C:\Prasad\Softwares\jdk1.7.0_79\jre\lib\security\cacerts
trustStore type is : jks
trustStore provider is : 
init truststore
SunX509: skip default keystore: java.security.KeyStoreException: jks not found
trigger seeding of SecureRandom
done seeding SecureRandom
keyStore is : 
keyStore type is : jks
keyStore provider is : 
init keystore

main, WRITE: TLSv1 Handshake, length = 107
main, received EOFException: error
main, handling exception: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
main, SEND TLSv1 ALERT:  fatal, description = handshake_failure
main, WRITE: TLSv1 Alert, length = 2
main, called closeSocket()
Exception in thread "main" org.springframework.web.client.ResourceAccessException: I/O error on GET request for "some url": Remote host closed connection during handshake; nested exception is javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
    at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:666)
    at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:613)
    at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:531)
Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake
  • 默認情況下,Java 1.6不支持TLSv2。 Oracle隨后發布了對它的支持,並且它不向公眾開放。
  • 與2009年發布的Java 1.7相同的問題。后來oracle發行了對它的支持,並向公眾開放。
  • Java 1.8默認情況下支持Tslv2。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM