https://github.com/l-applin/tls-algo-test
Test project for exploring the behavior of jdk.tls.disabledAlgorithms and jdk.tls.client.protocols system properties
https://github.com/l-applin/tls-algo-test
Last synced: 2 months ago
JSON representation
Test project for exploring the behavior of jdk.tls.disabledAlgorithms and jdk.tls.client.protocols system properties
- Host: GitHub
- URL: https://github.com/l-applin/tls-algo-test
- Owner: L-Applin
- Created: 2022-11-21T19:15:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-23T14:07:47.000Z (over 2 years ago)
- Last Synced: 2025-01-27T13:50:10.983Z (4 months ago)
- Language: Java
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Dummy project for testing behavior of `jdk.tls.disabledAlgorithms` and `jdk.tls.client.protocols` system properties.
## Run default
```bash
mvn clean package
java -Djavax.net.debug=all \
-jar target/tls-algo-test-1.0-SNAPSHOT-jar-with-dependencies.jar \```
## Test use TLS1.1
```bash
java -Djavax.net.debug=all \
-Djdk.tls.client.protocols="TLSv1.1" \
-jar target/tls-algo-test-1.0-SNAPSHOT-jar-with-dependencies.jar \
> out.txt 2>&1
```## Test use TLS1.2
```bash
java -Djavax.net.debug=all \
-Djdk.tls.client.protocols="TLSv1.2" \
-jar target/tls-algo-test-1.0-SNAPSHOT-jar-with-dependencies.jar \
> out.txt 2>&1
```## Test use TLS1.2 and disable it
```bash
java -Djavax.net.debug=all \
-Djdk.tls.client.protocols="TLSv1.2" \
-Djdk.tls.disabledAlgorithms="TLSv1.2" \
-jar target/tls-algo-test-1.0-SNAPSHOT-jar-with-dependencies.jar \
> out.txt 2>&1
```## Test use TLS1.3 and disable it
```bash
java -Djavax.net.debug=all \
-Djdk.tls.client.protocols="TLSv1.3" \
-Djdk.tls.disabledAlgorithms="TLSv1.3" \
-jar target/tls-algo-test-1.0-SNAPSHOT-jar-with-dependencies.jar \
> out.txt 2>&1
```