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

WARNING: Unable to find Conscrypt #11576

Closed
Bios-Marcel opened this issue Sep 30, 2024 · 2 comments · Fixed by #11591
Closed

WARNING: Unable to find Conscrypt #11576

Bios-Marcel opened this issue Sep 30, 2024 · 2 comments · Fixed by #11591
Milestone

Comments

@Bios-Marcel
Copy link

What version of gRPC-Java are you using?

grpc-okhttp 1.66

What is your environment?

Windows 11, x64

What did you expect to see?

No warnings when using the gRPC-okhttp client.

What did you see instead?

Sep 30, 2024 10:49:52 AM io.grpc.okhttp.internal.Platform getAndroidSecurityProvider
WARNING: Unable to find Conscrypt

It seems that the first thing the internal okhttp fork does, is to find the android security provider.
As we are running on Windows, this obviously won't work.

This is where the error occurs:
https://github.com/grpc/grpc-java/blob/master/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/Platform.java#L288

Given that the application works just fine after this warning, I assume adding a matching security provider on our side would be nonsense.

Steps to reproduce the bug

Simply use gRPC with transport security on a non-android platform.

@ejona86
Copy link
Member

ejona86 commented Sep 30, 2024

It is possible and actually pretty easy to use Conscrypt on Windows. But yes, the log shouldn't be there. #11567 was trying to fix this, but they've not signed the CLA yet and they'd need to fix a bug. If that drags out more we can create an alternative PR to do as I suggest in a comment. (I actually have a commit ready, but decided to hold off to give that other PR some time to work out.)

@Bios-Marcel
Copy link
Author

I see, thanks for the info :)

@ejona86 ejona86 added this to the 1.68 milestone Oct 2, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants