Skip to content
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

Problems using ApiClient with SSL #66

Open
steven-barnes opened this issue Nov 2, 2020 · 0 comments
Open

Problems using ApiClient with SSL #66

steven-barnes opened this issue Nov 2, 2020 · 0 comments

Comments

@steven-barnes
Copy link

steven-barnes commented Nov 2, 2020

I cannot find any examples of how to use the API with SSL, and the code contains multiple bugs.

The first problem is that you are calling a deprecated method of OKHttp. If you are using JDK 8u252 or later, this will cause an exception; see this issue: square/okhttp#6019

I tried upgrading the version of OKHttp, and that didn't work. I was able to get past this bug by downgrading my JDK. But then I ran into a bug, in which ApiClient sets the HostnameVerifier to null, if verifyingSsl is true. This is in ApiClient.applySslSettings.

Then I tried setting verifyingSsl to false (not something recommended for production servers), and got yet another null pointer exception.

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

No branches or pull requests

1 participant