-
Notifications
You must be signed in to change notification settings - Fork 260
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
javax.net.ssl.SSLException #209
Comments
Are you connecting to TLS 1.2 only server? I got similar problem. |
@dodyg Which version of Android is this breaking for you? |
Minimum Android Target API Level 15 (v4.0.3) |
Support for TLS 1.2 on Android versions below 4.4 is not automatically enabled so a workaround is needed for it to work. I have a pull request #210 pending that fixes this issue - maybe this could help you. |
Great thanks. I've made a test project (a single file) that demonstrate the problem. https://github.com/dodyg/modern-http-client-android-tls-problem There is a new nuget https://www.nuget.org/packages/enjin-modernhttpclient but I am not sure what that package has. |
Not sure either on that one. |
Did you ever try the Xamarin fork? |
https://www.nuget.org/packages/enjin-modernhttpclient is quite useless in this regard. I just tried it and it returns the same error. |
Nope didn't try the Xamarin fork - for my project I used my fork. |
@kunni80 Thank you so much. It works. I updated my sample project with a release build of your fork. https://github.com/dodyg/modern-http-client-android-tls-problem/tree/master. |
Great. Glad it worked for you. |
I got another problem though :( The forked ModernHttpClient works fine in app but it fails in test library.
|
Never mind. I have to do #if conditional compilation so the normal test library uses non ModernHttpClient. HttpClient |
Is there any plan that this fix will be included in the next release of ModernHttpClient? |
Hi, In TLS negotiation I found out only the following cipher suite is the strongers that is supported: Is there any change that we can get support for all cipher suites (the stronger)? |
I found that not all cipher suites are supported, actually exactly as stated here: Here are the screenshots of TLS handshake: Is there any chance to make other (stronger) cipher suites to work? |
@NovakSavicOPAL I have added in support for cipher suites in my fork see if that works out for you - i have also added it to the #210 pull request |
@kunni80 |
It is a custom class - you can find it in her here |
Ok. For some reason it was not added to the ModernHttpClient.Android project. |
As I expected. It the same, since your change only explicitly set supported cipher suites. But supported one are as specified: But :-), I need more, actually all cipher suites that are supported on Android 5. |
Guys, i released an updated version of the this library and i will be incorporating fixes using the bugs from this repo. You can find it by this name modernhttpclient-updated.2.4.3 |
We sometimes get following exception in Android:
I researched this and found this stackoverflow post but there is no way to fix this with this client.
The text was updated successfully, but these errors were encountered: