-
Notifications
You must be signed in to change notification settings - Fork 47
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
io.ipinfo.api.errors.ErrorResponseException: javax.net.ssl.SSLHandshakeException #13
Comments
Hello, @nikhilvs ! Could you please provide a Minimal, Complete, and Verifiable example? Thanks! |
Using payed version of ipinfo/java to lookup ip. java version "1.8.0_72" BTW it is environment specific, cannot reproduce in local
Generates following Error Stacktrace(i know it can be missing CA cert in keystore, but not seen issue for other HTTPS calls) :
|
IPInfo uses Lets Encrypt, which might have issues with older systems. Try making a request to https://letsencrypt.org/ on the same local instance and see if you get the same error. |
Yes, the issue is because older version JDK 1.8 doesn't have CA certificate of lets encrypt. But as a library provider, this is still a bug from your side. |
(I don't work for ipinfo anymore, just wrote this library so I wanted to help :) ) |
According to https://letsencrypt.org/docs/certificate-compatibility/ this won't be an issue for I think the best thing we can do is either require a JDK version that is |
|
@jd8171 for this issue, you don't need to do anything further. |
io.ipinfo.api.errors.ErrorResponseException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
at io.ipinfo.api.request.BaseRequest.handleRequest(BaseRequest.java:35) ~[ipinfo-api-1.1.jar!/:?]
at io.ipinfo.api.request.IPRequest.handle(IPRequest.java:24) ~[ipinfo-api-1.1.jar!/:?]
at io.ipinfo.api.IPInfo.lookupIP(IPInfo.java:51) ~[ipinfo-api-1.1.jar!/:?]
Version : 1.1
Java version: 1.8
OS: Amazon linux
The text was updated successfully, but these errors were encountered: