Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dominiquecomte/sslpoke
the SSLPoke command, from Atlassian, but with a Maven native build and updated to Java 21
https://github.com/dominiquecomte/sslpoke
java ssl test tls
Last synced: 27 days ago
JSON representation
the SSLPoke command, from Atlassian, but with a Maven native build and updated to Java 21
- Host: GitHub
- URL: https://github.com/dominiquecomte/sslpoke
- Owner: DominiqueComte
- Created: 2024-03-09T11:58:52.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-10-21T20:19:58.000Z (3 months ago)
- Last Synced: 2024-10-22T14:36:55.094Z (3 months ago)
- Topics: java, ssl, test, tls
- Language: Java
- Homepage:
- Size: 115 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SSLPoke
Small program for testing the validity of certificates and trust stores.
## Building
Either build "normally":
```shell
./mvnw package
```
or do a native build (that needs a GraalVM JDK)
```shell
./mvnw package -Pnative
```## Usage
### with the JAR file and the default trust store
```shell
java SSLPoke [target-hostname] [port]
```### with the native program and the default trust store
```shell
sslpoke [target-hostname] [port]
```### output
If the server certificate is trusted by the client-truststore it will print,
```console
Successfully connected
```Otherwise, it will print an exception like this.
```console
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
```### extra options
The same options can be passed to the Java program or the native program.For example:
* the path to a trust store
* `-Djavax.net.ssl.trustStore=[client-truststore-path]`
* enabling some debugging output
* `-Djavax.net.debug=ssl:handshake`
* proxy settings
etc...## source
This class or similar ones are a bit everywhere, I couldn't find which one was the first one.
Possibly, from [this file](https://confluence.atlassian.com/download/attachments/117455/SSLPoke.java) on the Atlassian website.