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

What is the correct setup using keystores for SSL handshakes in Java

I am developing a secure chat program in Java using JSSE. For 2 people to communicate you specify the keystore to use e.g. Bob will start the program with bob.keystore and alice will start program with alice.keystore The way I have it setup and…
roukzz
  • 129
  • 1
  • 2
  • 10
0
votes
0 answers

Disable SSL/TLS renegotiation in Apache CXF client

I am using Apache CXF libraries to connect to a webserver which does not allow SSL/TLS renegotiation. But, my client tries to perform renegotiation every time resulting in an error on the server-side. Is there a way to completely disable SSL/TLS…
Amit
  • 606
  • 17
  • 29
0
votes
0 answers

Does JSSE support TLS RFCS 6520 heartbeat?

TLS Heartbeat Extension (https://www.rfc-editor.org/rfc/rfc6520), which is available in OpenSSL. Does JSSE also support this extension ?
auntyellow
  • 2,423
  • 2
  • 20
  • 47
0
votes
2 answers

Exception when using SSLEngine

I am writing a custom server for an android phone to handle https requests. It starts by listening on a specific port and once a connection is made, it performs handshake with the client. Here is the snipet of the code: ServerSocket sock = new…
Chris
  • 357
  • 4
  • 16
0
votes
1 answer

Throwing exception on NIO SSL Handshake process using SSLEngine

I am getting following exception on NIO SSL handshake. During handshake process, On client side, a) NEED_WRAP b) NEED_UNWRAP c) NEED_TASK d) NEED_UNWRAP - getting the following exception on calling unwrap. javax.net.ssl.SSLProtocolException:…
0
votes
2 answers

Confusion generating private and public keys for jsse?

I have found tutorial for introducing the steps for generating keys. It tells the following steps: keytool -genkey -alias clientprivate -keystore client.private -storetype JKS -keyalg rsa \ -dname "CN=Your Name, OU=Your Organizational Unit,…
user3104352
  • 1,100
  • 1
  • 16
  • 34
0
votes
0 answers

Generating 8-bit keys

I want to store multiple 8-bit keys and store in JSSE keystore, is it possible to do that with keytoo? something with keytool -genkeypair
Phalguni Mukherjee
  • 623
  • 3
  • 11
  • 29
0
votes
2 answers

Connection reset in JSSE

I am trying to do client server based ssl, here is my server code: public static void main(String arg[]){ try { KeyStore keyStore = KeyStore.getInstance("jks"); InputStream inputStream; try { inputStream = new…
Phalguni Mukherjee
  • 623
  • 3
  • 11
  • 29
0
votes
1 answer

2-way tls in java, between two servers

I have two servers in which one server behaves as a client for the other server for some data, both the servers are deployed in two different tomcats, I want to implement 2-way tls between them, my question is do I need to open TLS communication in…
Phalguni Mukherjee
  • 623
  • 3
  • 11
  • 29
0
votes
1 answer

Client-Server SSL communication + Self signed certificate

I'm building a Java Client-Server application. The client will communicating with the Server through SSL. I want to achive that the client needs to be authenticate itself. I mean use a keystore or whatever, but this topic is really new to me. So my…
dfritsi
  • 1,224
  • 3
  • 14
  • 24
0
votes
1 answer

Java key store is not found when default SSL context is redefined

Suppose, that I want all connections via SSL in my Java application ask user permission, when untrusted or expired server certificate is encountered (like most of web browsers do). It seemed, that the most natural way to do so is to substitute…
east825
  • 909
  • 1
  • 8
  • 20
0
votes
1 answer

Error while posting data : java.lang.RuntimeException: Export restriction: SunJSSE only :: in jboss server

While i try to execute some of my code in JBoss server, i am getting exception like. Error while posting data : java.lang.RuntimeException: Export restriction: SunJSSE only I tried to run the same in Tomcat and found that its working perfectly. I…
nagur527
  • 13
  • 3
0
votes
1 answer

no such algorithm: SunTls12RsaPremasterSecret for provider SunPKCS11-NSSFIPS

I have run into an issue after updating my JRE to 7u51. Prior to this, things were working fine. I have a web application that runs on Tomcat and it uses the mozilla NSS libraries to achieve FIPS 140-2 compliance when using SSL/TLS. To do this, I…
Seephor
  • 1,692
  • 3
  • 28
  • 50
0
votes
0 answers

SSL handshake issue while java client talking to SSLv3 ONLY server

We are facing a problem and I am sure this is the right place. We have a load balancer (cisco's) and for various reasons the SSL configuration on the load balancer (the server) side is set to use "SSLv3" protocol version. Now after setting the same,…
0
votes
1 answer

How to access a HTTPS url from a java application

I know this is a very basic question, but some how I have managed to not find a solution to this problem. I have a java class that has a main method. In that method, I try to access an https url as below: package helloworld; import…
Aspirant
  • 1,934
  • 4
  • 25
  • 44