No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


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.


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 -jar JsseTlsServer-1.56-1.0.jar 4433 ec.jks passwd ec


When using Bouncy Castle 1.50 or lower, the server is vulnerable to invalid curve attacks (see