Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


SSL trust provider for development and tests

This is a that trusts all hosts and accepts all certificates. It is not meant to be used in production.

Most part of the code is based on this post on with 2 additions:

  1. I added a custom HostnameVerifier, to accept certificates with wrong hostnames
  2. I wrapped everything with an agent

I didn’t want to modify my source codes or fiddle with security configuration files.

To use this agent use download the code, use maven to compile and run your program with the addition vm option “-javaagent:full/path/to/java-trustprovideragent-0.0.1-SNAPSHOT.jar”

That’s it.