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

SNI regression on Android 5 introduced in 4.7.0 #6067

Closed
marcbaldwin opened this issue May 19, 2020 · 4 comments
Closed

SNI regression on Android 5 introduced in 4.7.0 #6067

marcbaldwin opened this issue May 19, 2020 · 4 comments
Labels
android Relates to usage specifically on Android bug Bug in existing code needs info More information needed from reporter
Milestone

Comments

@marcbaldwin
Copy link

Your changelog states that in version 4.3.1 you fixed an issue introduced in 4.3.0 relating to SNI on Android 5.

Fix: Explicitly specify the remote server name when making HTTPS connections on Android 5. In 4.3.0 we introduced a regression where server name indication (SNI) was broken on Android 5.

This issue appears to have regressed in version 4.7.0, also in 4.7.1, 4.6.0 works as expected.

javax.net.ssl.SSLPeerUnverifiedException: Hostname REDACTED not verified:
certificate: REDACTED
DN: CN=REDACTED
subjectAltNames: [REDACTED]

Some info can be found here relating to this issue: https://developer.android.com/training/articles/security-ssl#CommonHostnameProbs

Thanks for your contribution to the Android community, please let me know if I can be of any help in fixing this issue.

@marcbaldwin marcbaldwin added the bug Bug in existing code label May 19, 2020
@yschimke
Copy link
Collaborator

We have a test that is meant to cover this case against a known picky host. I don't think MockWebServer is as particular. I'll debug a bit.

testRequestWithSniRequirement

@yschimke
Copy link
Collaborator

yschimke commented May 19, 2020

@marcbaldwin Are you using anything else interesting like the Play Provider, or Conscrypt?

Which phones? Which specific Android versions? Anything else to go on?

Can you grab the full set of System Properties from the devices?

@yschimke yschimke added android Relates to usage specifically on Android needs info More information needed from reporter labels May 19, 2020
@yschimke
Copy link
Collaborator

Possibly falling back to Platform because of the same bug as #6073

@yschimke yschimke added this to the 4.7.2 milestone May 20, 2020
@swankjesse
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android Relates to usage specifically on Android bug Bug in existing code needs info More information needed from reporter
Projects
None yet
Development

No branches or pull requests

3 participants