URLConnection conn = url.openConnection();
is = conn.getInputStream();
'javax.net.ssl.sslHandshake Exception: sun.security.validator.validationException: PKIK path building failed: sun.security.
provider.certPath.SuncertPathBuilderException: unable to find valid certification path to requested target.
--
Google 그룹스 'Korea Spring User Group' 그룹에 가입했으므로 본 메일이 전송되었습니다.
웹에서 이 토론을 보려면 https://groups.google.com/d/msg/ksug/-/DNNVDLNaDxMJ을(를) 방문하세요.
이 그룹에 게시하려면 ks...@googlegroups.com(으)로 이메일을 보내세요.
그룹에서 탈퇴하려면 ksug+uns...@googlegroups.com로 이메일을 보내주세요.
더 많은 옵션을 보려면 http://groups.google.com/group/ksug?hl=ko에서 그룹을 방문하세요.
��� �ٸ��� ã�ƺ��ٰ� apache http client 4.x���� ����ؼ� https�� ����߽��ϴ�.
�� ���� �ҽ� �Դϴ�. ������ �ɷ��� �ڳ�.
DefaultHttpClient httpclient = new DefaultHttpClient();
KeyStore trustStore = KeyStore.getInstance(KeyStore.getDefaultType());FileInputStream instream = new FileInputStream(new File(this.getClass().getResource("").getPath()+"client.truststore"));
try {trustStore.load(instream, "changeit".toCharArray());} finally {instream.close();}
SSLSocketFactory socketFactory = new SSLSocketFactory(trustStore);socketFactory.setHostnameVerifier(SSLSocketFactory.ALLOW_ALL_HOSTNAME_VERIFIER);Scheme sch = new Scheme("https", socketFactory, 443);httpclient.getConnectionManager().getSchemeRegistry().register(sch);
return httpclient;
2012�� 7�� 23�� ���� 10:04, ������ <mercu...@gmail.com>���� ��:
apache http client�� ����ص� ������ �ϱ��..??
2012�� 7�� 23�� ���� 9:54, YongHyuk Lee <unlogi...@gmail.com>�� �� ��:
�� ��.. �̷��� ���� �ִµ� �ѵ�.. ����������..
vm ���� �ɼǿ�..
-DUseSunHttpHandler=true
�̷������� httpClient ���� Sun JDK ����϶�� ������ �� �ִٴ�...
2012�� 7�� 23�� ���� 12:21, Ȳ��� <sta...@gmail.com>�� �� ��:
�ȳ��ϼ���.��� ������ XML�� ���� �ϱ� ���ؼ� URL Connection�� �̿��ؼ� Read �߽��ϴ�.
ex> URL url = new URL(path);URLConnection conn = url.openConnection();is = conn.getInputStream();
����, ��� ������ Https �� �������� �ϱ�� ���� Exception�� �� �ϳ�.
'javax.net.ssl.sslHandshake Exception: sun.security.validator.validationException: PKIK path building failed: sun.security.provider.certPath.SuncertPathBuilderException: unable to find valid certification path to requested target.
���۸� �Ͽ��� 3���� ������� �ذ��� �õ��� �غý��ϴ�.
- System.setProperty("java.protocal, "~~"); com.sun.net.ssl.internal.ssl.Provider provider = ~~~ ; Security.addProvider(provider) ; �ش� �ڵ� �߰�
- HttpsURLConnection conn = (HttpsURLConnection)url.openConnection(); SSLContext context = SSLContext.getInstance("TLS"); context.init(null, null, null);
--conn.setSSLSocketFactory(context.getSocketFactory()); �ش� ������� connection�� �δ� ��
- installcert.java ������ �� jssercacers ���� ���Ͽ� java_home/jre/lib/security/ ����� ���� ��.
������ ��� �����Ͽ� ���ϴ�. ��� �� ������ �ذ� �� �� �������?--
Google �콺 'Korea Spring User Group' �쿡 ���������Ƿ� �� ������ ��۵Ǿ���ϴ�.
������ �� ����� ������ https://groups.google.com/d/msg/ksug/-/DNNVDLNaDxMJ�� (��) �湮�ϼ���.
�� �쿡 �Խ��Ϸ��� ks...@googlegroups.com(��) �� �̸����� ��������.
�쿡�� Ż���Ϸ��� ksug+uns...@googlegroups.com �� �̸����� �����ּ���.
�� ���� �ɼ��� ������ http://groups.google.com /group/ksug?hl=ko���� ���� �湮�ϼ���.
--
Google �콺 'Korea Spring User Group' �쿡 ���������Ƿ� �� ������ ��۵Ǿ���ϴ�.
�� �쿡 �Խ��Ϸ��� ks...@googlegroups.com(��) �� �̸����� ��������.
�쿡�� Ż���Ϸ��� ksug+uns...@googlegroups.com�� �̸����� �����ּ���.
�� ���� �ɼ��� ������ http://groups.google.com/group/ksug?hl=ko�� �� ���� �湮�ϼ���.
--
----------------------------------------itemBay ���߽� ����2��
���� / �̿���Mobile: 010.8425.9004
����� ��õ�� ��2�� 524-1
--
Google �콺 'Korea Spring User Group' �쿡 ���������Ƿ� �� ������ ��۵Ǿ���ϴ�.
�� �쿡 �Խ��Ϸ��� ks...@googlegroups.com(��)�� �̸����� ��������.
�쿡�� Ż���Ϸ��� ksug+uns...@googlegroups.com�� �̸����� �����ּ���.
�� ���� �ɼ��� ������ http://groups.google.com/group/ksug?hl=ko�� �� ���� �湮�ϼ���.
--
Google �콺 'Korea Spring User Group' �쿡 ���������Ƿ� �� ������ ��۵Ǿ���ϴ�.
�� �쿡 �Խ��Ϸ��� ks...@googlegroups.com(��) �� �̸����� ��������.
�쿡�� Ż���Ϸ��� ksug+uns...@googlegroups.com�� �̸����� �����ּ���.
�� ���� �ɼ��� ������ http://groups.google.com/group/ksug?hl=ko�� �� ���� �湮�ϼ���.
Google �콺 'Korea Spring User Group' �쿡 ���������Ƿ� �� ������ ��۵Ǿ���ϴ�.
�� �쿡 �Խ��Ϸ��� ks...@googlegroups.com(��)�� �̸����� ��������.
�쿡�� Ż���Ϸ��� ksug+uns...@googlegroups.com�� �̸����� �����ּ���.
�� ���� �ɼ��� ������ http://groups.google.com/group/ksug?hl=ko���� ���� �湮�ϼ���.