Questions tagged [jsse]

JSSE is a Java implementation of Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols. Its functionality includes data encryption, server authentication, message integrity, and optional client authentication.

JSSE stands for Java Secure Socket Extension. It is a Java implementation of Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols. Its functionality includes data encryption, server authentication, message integrity, and optional client authentication.

It is so named because originally it was shipped as a separate extension to Java 1.2 and 1.3. Since Java 1.4 it has been part of the standard Java API.

This tag should be used for questions about TLS or SSL programming in Java.

295 questions
0
votes
1 answer

How to get CertPathValidatorResult in checkServerTrusted() of TrustManager?

When the checkServerTrusted method of classes implementing X509TrustManager is invoked, I need to get ALL validation errors that are associated with a certificate chain including Certificate path validation problems. e.g CA not trusted Certificate…
varrunr
  • 845
  • 1
  • 11
  • 19
0
votes
1 answer

Authentication based on SSLSockets java application

I'm developing a Java application and I need to send a couple strings (user and password) to the server through a Secure Sockets, i have to use my own certificate generated by a trusted CA, but i'm getting a exception Server class LoginServer { …
Litox
  • 163
  • 1
  • 11
0
votes
1 answer

Java SSLSocket what to do after read returns -1?

I'm using a java server to connect to a browser with secure websockets. All works fine with the connect, but many times i get an unexpected -1 result from socket.in.read(buffer,off,len), this happens also in the middle of a frame. Normally i close a…
Bas Goossen
  • 459
  • 1
  • 7
  • 20
0
votes
1 answer

how to Manipulate Handshake message in TLS/SSL in JAVA JSSE?

I want to know is if we can handle messages handshake SSL / TLS in Java code, in other words in the query ClientKeyExchange is if we can manipulate or select the key that will be sent to the server?
amin
  • 63
  • 1
  • 5
0
votes
1 answer

SSLSocket exception handshake error when trying to send to SSLServerSocket

it's my first times to deal with SSLSockets , i created SSLServerSocket and SSLSocket , the ServerSocket run ok , but when trying to run the SSLSocket (Client) , it's don't run , and this error appear to me : SEVERE: null …
Jason4Ever
  • 1,439
  • 4
  • 23
  • 43
0
votes
2 answers

How to add multiple trustsources on the server

My question is somewhat related to this question on Stackoverflow. However, my server will be listening on a single port. The server will trust the client only of it finds the clients public key certificate with itself. I want the client to send the…
TheRookierLearner
  • 3,643
  • 8
  • 35
  • 53
0
votes
1 answer

How to verify a certificate using Keytool?

I want to a program to verify to create a SSL Sockets using Oracle's SSLSocket class. In my program I want the client to pass its certificate (created using Keytool). The Server should verify the certificate and then proceed with communication. I…
TheRookierLearner
  • 3,643
  • 8
  • 35
  • 53
0
votes
1 answer

SSLSocketFactory finding the time spent on road on java

I am making a client/sever connection by using SSL Sockets of java. I am sending a long string to the server from client and then I am recording that string to a text file on server part. Which is really basic. What I want to do is I want to learn…
bamya
  • 416
  • 1
  • 6
  • 15
0
votes
1 answer

Control remote clients status on TCP connections

I need to write a platform with a centralized server and a lot of remote clients to execute tasks. I'm currently using an RMI connection, being the centralized server who acts as client of the remote clients (RMI servers). It's working, but I'm…
David Moreno García
  • 4,423
  • 8
  • 49
  • 82
0
votes
1 answer

JSSE wrap creates two tls packets requiring two unwraps. Why?

I am inspecting the behavior of our java application with respect to jsse tls encryption and decryption with a connected openssl client. First I observed that when I call unwrap for client data, it always unwraps consuming 37 bytes and producing 0.…
Steffen Heil
  • 4,286
  • 3
  • 32
  • 35
0
votes
2 answers

SSLException: Invalid padding Unwrapping TLS Application Data

Several months ago I developed an SSL web server using NIO and the SSLEngine. GET requests work great as do small POST requests (under ~10KB). However, I'm getting sporadic SSLException exceptions, when I POST anything larger than that. For…
Peter
  • 1,182
  • 2
  • 12
  • 23
0
votes
1 answer

Is it possible to edit the supported ciphersuite list in Java

Is it possible to add ciphersuites to the Java supported ciphersuites list that I could get using: getSupportedCipherSuites();
user1810868
  • 1,565
  • 8
  • 23
  • 30
0
votes
1 answer

JMeter SSL Manager doesnt work

Im trying to use client ssl certificate in JMeter to authenticate on website. The problem is that when i try to import it in SSL Manager, im not getting any message for password, anything. In configuration i've…
marxin
  • 3,692
  • 3
  • 31
  • 44
0
votes
0 answers

Trying to connect gmail and get inbox from the server in JAVA?

I am trying to connect gmail and get inbox from the server. I can connect to gmail and log in my account. When I send them to the socket output.println( "A01 lOGIN " + userName + " " + password ); output.flush(); I can get response from the socket.…
HCD
  • 21
  • 1
  • 4
0
votes
1 answer

Solutions to sign certificates

For a system with multiple application servers and multiple clients, I would like to introduce mutual authentication as well as other security protections provided by TLS. The servers and clients may be located on different networks as well as on…
manash
  • 6,985
  • 12
  • 65
  • 125
1 2 3
19
20