binance-java-api icon indicating copy to clipboard operation
binance-java-api copied to clipboard

SunCertPathBuilderException unable to find valid certification

Open MilanNz opened this issue 7 years ago • 4 comments

Hello, thank you for great api but i have problem with following issue:

Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target at sun.security.provider.certpath.SunCertPathBuilder.build(SunCertPathBuilder.java:145) at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:131) at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:280) at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:382)

Do you have any idea how to solve this issue?

MilanNz avatar Jan 01 '18 15:01 MilanNz

I think this repo will not have upgrades, you need to declare the error in binance-exchange's fork : https://github.com/binance-exchange/binance-java-api

I declare more or less the same issue : https://github.com/binance-exchange/binance-java-api/issues/20

VaultDeveloper avatar Jan 03 '18 14:01 VaultDeveloper

cool, thanks :)

Edit: I've solved this issue using InstallCert class.

MilanNz avatar Jan 08 '18 22:01 MilanNz

Which host and port did you use with InstallCert? Do I just have to run it or integrate it in the program somehow?

Micha1990 avatar Jan 24 '18 17:01 Micha1990

You can use host api.binance.com with no port like "java InstallCert api.binance.com". Then follow instructions as per http://www.mkyong.com/webservices/jax-ws/suncertpathbuilderexception-unable-to-find-valid-certification-path-to-requested-target/

venuchitta avatar Mar 06 '18 05:03 venuchitta