Questions tagged [sslengine]

SSLEngine is a Java 5.0 class which provides SSL/TLS services but is transport independent.

71 questions
2
votes
1 answer

SSL Handshaking With Older Clients Using SSLEngine (JSSE)

This is a follow-up question to "SSL Handshaking Using Self-Signed Certs and SSLEngine (JSSE)". I have implemented a NIO Webserver that can process SSL and non-SSL messages on the same port. In order to distinguish between SSL and non-SSL messages,…
Peter
  • 1,182
  • 2
  • 12
  • 23
1
vote
1 answer

SSL Session Management with JSSE SSLEngine

I'm working on a SSL web server using NIO and the SSLEngine. I am able to successfully process handshakes and send/receive application data. However, I'm having difficulty understanding how to maintain SSL Session state. I am using Firefox 10 to…
Peter
  • 1,182
  • 2
  • 12
  • 23
1
vote
1 answer

How can connect to SSL in JAVA with websocket and socket.io?

How can access to wss:// protocol in java ? i use benkay / java-socket.io.client but it's not support wss protocol. i tried use SSLEngine. but it's very hard work. how can connect to ssl in java ? I tried change SocketChannel by SSLEngine. but it…
Sunwoo Kwon
  • 24
  • 1
  • 4
1
vote
0 answers

How to use Conscrypt library for ssl socketchannel in android?

On the conscrypt git page , there are no sample usage available to use the conscrypt for ssl socketChannel with sslEngine. Could anyone please provide sample usage example or guide me how to use conscrypt to make NIO socketchannel tcp socket with…
Ashok Kumar
  • 1,226
  • 1
  • 10
  • 14
1
vote
0 answers

General SSLEngine problem with Artemis cluster

I have setup an artemis cluster of four nodes (two master broker, two slave broker) and want it to be secured with ssl. When I start master broker 1, it gets up with no errors. When I start slave broker 1, there appears following stack…
Galadriel
  • 359
  • 5
  • 20
1
vote
0 answers

How to enable cipher TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 in SSLEngine

I am are trying to connect to server which supports cipher TLS_DHE_RSA_WITH_AES_256_GCM_SHA384. At client side i am using SSLengine with Conscrypt as Java security provider(JCE). I tried to set the cipher in sslengine but was getting exception as…
Ashok Kumar
  • 1,226
  • 1
  • 10
  • 14
1
vote
1 answer

Can I use VPC Link to NLB with ACM private certificate?

I've got an AWS API GW that I'm trying to hook up to HTTPS REST endpoints in a different VPC. According to AWS support and the docs I've ready the solution is to use a VPC link pointing to an NLB in the GWs VPC with IP targets in the other VPC. My…
1
vote
0 answers

Android NIO- Not able to read large data from SocketChannel, Error: BUFFER_UNDERFLOW

We are trying to read large amount of data through NIO TCPs SocketChannel. Code is working for small amount of data(less than 16KB), but above than first it read 16KB into destination buffer again try to read for remaining data it gives…
1
vote
1 answer

SSLEngine giving NEED_UNWRAP after unwrapping server hello done

I am using DTLS1.0 provided by java 9. It successfully generate Client Hello and server response back with 1. Server Hello 2. Certificate 3. Server Key Exchange 4. Certificate Request 5. Server Hello Done Then SSLEngine gives NEED_UNWRAP.…
Rashed
  • 87
  • 1
  • 12
1
vote
1 answer

How to restrict SSLEngine to TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8 CipherSuite?

I have the following code: SSLContext sslContext = SSLContext.getInstance("TLS", BouncyCastleProvider.PROVIDER_NAME); sslContext.init(keyManagerFactory.getKeyManagers(), null, null); SSLEngine sslEngine = sslContext.createSSLEngine(); String[]…
AlexITC
  • 1,054
  • 1
  • 10
  • 21
1
vote
0 answers

Android SSLEngine resume ssl session

I’m using SSLEngine to encrypt data in Android, The first Handshake is Ok and I have my encrypted Data, and I have my session id. I want to resume my previous session to avoid creating a new session but in SSLEngine we don’t have the possibility to…
1
vote
1 answer

SSLEngine but without delegated task

Is there a way in Java to have the same functionality as SSLEngine but without a delegated task, because my program needs to handle a lot of connections and I wrote it in NIO with the purpose to use less ram, have more connections and have better…
IRONALEKS
  • 50
  • 10
1
vote
1 answer

Effect to a SSLEngine when calling init() of a shared SSLContext object again

I have an implementation of reactor pattern in which I load the SSLContext when a TransportListener (Basically a listener listening on a given port for HTTPS connections.) is starting. Then I call the same init() method again (through a JMX call to…
Imesha Sudasingha
  • 3,462
  • 1
  • 23
  • 34
1
vote
1 answer

How to detect exceptions in delegated tasks (SSLEngine)

I use SSLEngines together with NIO to provide nonblocking SSL connections to my application. At some point during the handshake (probably after receiving ServerHelloDone) the SSLEngine requires me to process a delegated task. So I call…
Steffen Heil
  • 4,286
  • 3
  • 32
  • 35
1
vote
1 answer

JAVA SSLENGINE: Unsupported record version Unknown-0.0 while trying to unwrap bytebuffer record with SSLEngine

I am using an SSLEngine over Java NIO unblocking server sockets to handle connections. I am able to successfully handshake the clients and pass small record sets to the server. However when I try to transfer a file to the server text/binary I am…
Praveena
  • 6,340
  • 2
  • 40
  • 53