일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- jQuery
- PLSQL
- iBATIS
- tomcat
- jsr 296
- phonegap
- node.js
- swingx
- GPS
- Android
- Spring
- ibsheet
- 전자정부프레임워크
- Eclipse
- oracle
- rowspan
- 선택적조인
- sencha touch
- Google Map
- JDOM
- 가우스
- Ajax
- WebLogic
- JSON
- MFC
- appspresso
- PHP
- Struts
- dock
- MySQL
Archives
- Today
- Total
Where The Streets Have No Name
apache httpclient에서 ssl 처리 본문
javax.net.ssl.SSLException: Certificate doesn't match any of the subject alternative names
apache httpclient로 ssl을 연동한 연결을 하는 경우 위와 같은 에러가 발생합니다.
SSLConnectionSocketFactory scsf = new SSLConnectionSocketFactory(
SSLContexts.custom().loadTrustMaterial(null, new TrustSelfSignedStrategy()).build(),
NoopHostnameVerifier.INSTANCE)
httpclient = HttpClients.custom().setSSLSocketFactory(scsf).build()
버전은 4.* 기준입니다.