https://github.com/michael-simons/java-trustprovideragent
https://github.com/michael-simons/java-trustprovideragent
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/michael-simons/java-trustprovideragent
- Owner: michael-simons
- Created: 2011-07-25T09:04:19.000Z (almost 15 years ago)
- Default Branch: master
- Last Pushed: 2012-01-04T14:54:29.000Z (over 14 years ago)
- Last Synced: 2025-03-27T06:49:10.929Z (over 1 year ago)
- Language: Java
- Homepage: http://info.michael-simons.eu/2011/07/25/java-and-invalid-ssl-certificates-java-trustprovideragent/
- Size: 97.7 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.textile
Awesome Lists containing this project
README
h1. SSL trust provider for development and tests
This is a java.security.Provider 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":http://devcentral.f5.com/weblogs/joe/archive/2005/07/06/1345.aspx on f5.com with 2 additions:
# I added a custom HostnameVerifier, to accept certificates with wrong hostnames
# 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.