Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

boly38/javabox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JavaBox

Java helper and tips

SSL certificates

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...

About

Java helper and tips

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages