handshake

How to make Java 6, which fails SSL connection with “SSL peer shut down incorrectly”, succeed like Java 7?

寵の児 提交于 2019-11-27 12:41:23
I'm seeing an SSL connection from a client running Java 6 fail with an exception like: Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:882) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1215) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1199) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient

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

*爱你&永不变心* 提交于 2019-11-27 00:15:31
问题 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

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

懵懂的女人 提交于 2019-11-26 23:35:31
问题 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

Send custom data along with handshakeData in socket.io?

孤街浪徒 提交于 2019-11-26 21:26:06
So I have an application running node js with socket.io as a backend and normal javascript as frontend. My application has a login system which currently simply has the client send its login data as soon as it's connected. Now I figured it would be much nicer to have the login data sent along with the handshakeData, so I can directly have the user logged in while connecting (instead of after establishing a connection) respectively refuse authorization when the login data is invalid. I'm thinking it would be best to put my additional data in the header part of the handshakeData, so any ideas

How to make Java 6, which fails SSL connection with “SSL peer shut down incorrectly”, succeed like Java 7?

被刻印的时光 ゝ 提交于 2019-11-26 16:06:15
问题 I'm seeing an SSL connection from a client running Java 6 fail with an exception like: Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:882) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1215) at com.sun.net.ssl.internal.ssl.SSLSocketImpl

Send custom data along with handshakeData in socket.io?

半腔热情 提交于 2019-11-26 09:06:12
问题 So I have an application running node js with socket.io as a backend and normal javascript as frontend. My application has a login system which currently simply has the client send its login data as soon as it\'s connected. Now I figured it would be much nicer to have the login data sent along with the handshakeData, so I can directly have the user logged in while connecting (instead of after establishing a connection) respectively refuse authorization when the login data is invalid. I\'m