티스토리 뷰
javax.net.ssl.SSLProtocolException: handshake alert: unrecognized_name
|
- -Djsse.enableSNIExtension=false 옵션추가
- System.setProperty(“jsse.enableSNIExtension”, “false”);
I had what I believe the same issue is. I found that I needed to adjust the Apache configuration to include a ServerName or ServerAlias for the host. This code failed:
And this code worked:
Wireshark revealed that during the TSL/SSL Hello the warning Alert (Level: Warning, Description: Unrecognized Name), Server Hello Was being sent from the server to the client. It was only a warning, however, Java 7.1 then responded immediately back with a "Fatal, Description: Unexpected Message", which I assume means the Java SSL libraries don't like to see the warning of unrecognized name. From the Wiki on Transport Layer Security (TLS): 112 Unrecognized name warning TLS only; client's Server Name Indicator specified a hostname not supported by the server This led me to look at my Apache config files and I found that if I added a ServerName or ServerAlias for the name sent from the client/java side, it worked correctly without any errors. <VirtualHost mydomain.com:443> |
'Programing > Java' 카테고리의 다른 글
slf4j 란? (0) | 2016.01.20 |
---|---|
PowerMockito 를 이용하여 private method Mock 처리하기 (0) | 2015.12.31 |
java.io.InvalidClassException (0) | 2015.07.15 |
Serializable 과 transient (0) | 2015.06.29 |
[자바8 람다의 힘] 3장 String, Comparator 그리고 filter (0) | 2015.04.01 |
- Total
- Today
- Yesterday
- 통계학
- 태그를 입력해 주세요.
- 알고리즘
- 책요약
- 데이터과학자
- flume
- PYTHON
- linux
- mongodb
- Oracle
- jenkins2.0
- Apache Spark
- jackson
- Git
- exception
- Learning Spark
- mysql
- db
- spark
- bigdata
- spring
- java
- mongo
- Hdfs
- Sqoop
- jenkins
- 확률분포
- HADOOP
- json
- Django
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |