Java helper and tips
- HexAsciiConversion helper
- File helper
- Properties helper
- Selenium helper
- sFTP helper
- SoapUI helper
- System helper
- UnsafeSSL helper
- Unzip helper
When you're trying to request a remote secure host without a complete and valid certification chain you often get the following error :
sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
This project also includes InstallCert
& InstallCertProxy
to auto-detect ssl certificates of a SSL target host.
Example to append intermediate certificates (PKIX chain) to your truststore:
java -Dhttps.proxyHost=proxy -Dhttps.proxyPort=80 -Djava.home=%JAVA_HOME%\jre -cp target\javabox-1.0-SNAPSHOT.jar InstallCertProxy myhttpstarget
To list all ssl certificates:
keytool -list -keystore "%JAVA_HOME%/jre/lib/security/cacerts"
If you didn't success to fix your certification path (and for test only!) you could also use UnsafeSSL helper to disable all SSL check.
NB: any remarks or pull request are welcome...