Skip to content

RUB-NDS/JsseTLS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e1102ee · Jan 31, 2025

History

13 Commits
Jan 31, 2025
Apr 5, 2018
Apr 5, 2018
Dec 10, 2024

Repository files navigation

JsseTLS

JSSE TLS examples

  • Can be used with the Bouncy Castle security provider, different versions are supported based on the provided parameter
  • RSA and EC keys are supported

Compile with (assuming version 1.56):

mvn clean install -Dbc.version=1.56

Start with:

java -jar JsseTlsServer-1.56-1.0.jar [port] [jks] [password] [alias] [BC]

The last paramater is optional. If it is set, the server uses the Bouncy Castle security provider and inserts it on the first place in the provider list. Otherwise, default Java security providers are used.

Examples

Typical usage examples:

java -jar JsseTlsServer-1.56-1.0.jar 4433 rsa.jks passwd rsakey BC
java -jar JsseTlsServer-1.56-1.0.jar 4433 ec.jks passwd ec

To use JSSE debugging output, you can start the server as follows:

java -Djavax.net.debug=all -jar JsseTlsServer-1.56-1.0.jar 4433 ec.jks passwd ec

Note

When using Bouncy Castle 1.50 or lower, the server is vulnerable to invalid curve attacks (see https://web-in-security.blogspot.de/2015/09/practical-invalid-curve-attacks.html)