Skip to content

Failed to validate the certificate chain, error: java.security.cert.CertPathValidatorException: Trust anchor for certification path not found. #310

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
DylanZhuang opened this issue Jan 25, 2019 · 1 comment

Comments

@DylanZhuang
Copy link

No description provided.

@dpedrinha
Copy link

I'm having the same problem.
Need a way to add a badCertificateCallback to validate the URL and accept the connection.

Something like this:
client.badCertificateCallback = ((X509Certificate cert, String host, int port) {
final isValidHost = host == 'valid.url.com';
return isValidHost;
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants