handshake

Java server self-signed certificate + client certificate and SSL handshake_failure

房东的猫 提交于 2019-12-02 00:29:30
I'm connecting to a web service which was used before successfully, however now they've changed hostname and sent me two .pem files; one is CA, and other is my new client certificate. (I'm using Java 1.5, Spring + Spring Web Services with Apache httpclient, but I suspect my problem is with certificates, keys and SSL itself.) I've imported both .pem files, as well as host's .crt which I exported from Firefox into my cacerts. However, I'm obviously doing something wrong since I get this exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure at com.sun.net.ssl

HttpClient fails with Handshake Failed in Android 5.0 Lollipop

陌路散爱 提交于 2019-11-30 03:36:05
DefaultHttpClient in Android 5.0 Lollipop seems to be broken. It can not set the connection to some sites that were successfully set by previous versions of Android. For example I try to connect to https://uralsg.megafon.ru //Create httpclient like in https://stackoverflow.com/questions/18523784/ssl-tls-protocols-and-cipher-suites-with-the-androidhttpclient HttpClient client = new DefaultHttpClient(manager, params); HttpGet httpGet = new HttpGet("https://uralsg.megafon.ru"); HttpResponse client = httpclient.execute(httpGet); This code works in Android 2.3-4.4, but fails on Android 5.0 (devices

SSL handshake fails with - a verisign chain certificate - that contains two CA signed certificates and one self-signed certificate

梦想与她 提交于 2019-11-29 20:36:35
I am stuck with a issue and trying to debug it. We purchased a Verisign certificate. When we use: openssl> s_client -connect myweb.com:443 -showcerts SSL Handshake never completes and at the end we see error: Verify return code: 19 (self signed certificate in certificate chain) It shows 3 ---BEGIN/END CERTIFICATE--- tags. Two certificates in chain are Verisign signed but one is self signed. If someone can please explain how this self-signed certificate shows up in a CA signed certificate? Is this error 19 (self signed certificate in certificate chain) benign? If not, what could be causing it?

Android developpement, Gottox socket.io-java-client: file not fount Exception /socket.io/1/

天大地大妈咪最大 提交于 2019-11-29 11:29:01
here is my problem: i've been trying to use socket.io-java-client for an android app but i'm ending up with an handshake error (see below). here is my app source code: public void runIO(){ try { SocketIO socket = new SocketIO("http://192.168.1.60:1337"); socket.connect(new IOCallback() { @Override public void onMessage(JSONObject json, IOAcknowledge ack) { try { System.out.println("Server said:" + json.toString(2)); } catch (JSONException e) { e.printStackTrace(); } } @Override public void onMessage(String data, IOAcknowledge ack) { System.out.println("Server said: " + data); } @Override

HttpClient fails with Handshake Failed in Android 5.0 Lollipop

两盒软妹~` 提交于 2019-11-29 00:32:36
问题 DefaultHttpClient in Android 5.0 Lollipop seems to be broken. It can not set the connection to some sites that were successfully set by previous versions of Android. For example I try to connect to https://uralsg.megafon.ru //Create httpclient like in https://stackoverflow.com/questions/18523784/ssl-tls-protocols-and-cipher-suites-with-the-androidhttpclient HttpClient client = new DefaultHttpClient(manager, params); HttpGet httpGet = new HttpGet("https://uralsg.megafon.ru"); HttpResponse

SSL handshake fails with - a verisign chain certificate - that contains two CA signed certificates and one self-signed certificate

[亡魂溺海] 提交于 2019-11-28 16:41:12
问题 I am stuck with a issue and trying to debug it. We purchased a Verisign certificate. When we use: openssl> s_client -connect myweb.com:443 -showcerts SSL Handshake never completes and at the end we see error: Verify return code: 19 (self signed certificate in certificate chain) It shows 3 ---BEGIN/END CERTIFICATE--- tags. Two certificates in chain are Verisign signed but one is self signed. If someone can please explain how this self-signed certificate shows up in a CA signed certificate? Is

Php curl set ssl version

烂漫一生 提交于 2019-11-28 11:23:15
Since 3 days I can't connect to the paypal sandbox. I found out that they maybe dissabled the support for SSLv3. So i tried to change the SSL Version in my curl Request by setting : curl_setopt($curl, CURLOPT_SSLVERSION,1); # 1 = TLSv1 But it still give me the same error : error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure Any idea why the script is still using SSLv3 ? I am using php 5.5 and the following curl version ( currently asking at my hoster [ managed hosting at 1&1 ] to upgrade to a newer version) curl 7.21.0 (i486-pc-linux-gnu) libcurl/7.21.0 OpenSSL/0.9

Android developpement, Gottox socket.io-java-client: file not fount Exception /socket.io/1/

吃可爱长大的小学妹 提交于 2019-11-28 04:54:32
问题 here is my problem: i've been trying to use socket.io-java-client for an android app but i'm ending up with an handshake error (see below). here is my app source code: public void runIO(){ try { SocketIO socket = new SocketIO("http://192.168.1.60:1337"); socket.connect(new IOCallback() { @Override public void onMessage(JSONObject json, IOAcknowledge ack) { try { System.out.println("Server said:" + json.toString(2)); } catch (JSONException e) { e.printStackTrace(); } } @Override public void

Set up Netty with 2-way SSL Handsake (client and server certificate)

我们两清 提交于 2019-11-28 04:01:24
I am now trying to set up Netty with a 2 way SSL handshake, where both the client and server present and verify certificates. This does not appear to be implemented in SslHandler. Has anyone does this? I suppose it would go in the SslHandler.handshake operation and be delegated to javax.net.ssl.SSLEngine? Any hints/tips/pre-existing implementations? Thanks! ANSWER (stackoverflow won't let me post it the normal way) I found that if I set the needClientAuth flag on the SSLEngine object before setting up my SslHandler, that takes care of the problem! Here is the solution, based on the HttpSnoop

Running curl with OpenSSL 0.9.8 against OpenSSL 1.0.0 server causes handshake error?

僤鯓⒐⒋嵵緔 提交于 2019-11-28 01:51:36
If I run curl against a machine that is running OpenSSL 1.0.0e for example: curl -v https://shumaker.flexrentalsolutions.com on a machine that is running OpenSSL 0.9.8r I get the following error: About to connect() to shumaker.flexrentalsolutions.com port 443 (#0) * Trying 50.112.122.15... connected * Connected to shumaker.flexrentalsolutions.com (50.112.122.15) port 443 (#0) * SSLv3, TLS handshake, Client hello (1): * error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112) * Closing connection #0 If I run the same curl command on a machine that is running OpenSSL 1.0.0e the command