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

Can't find certs in Android device #90

Closed
laiyi55 opened this issue Jan 24, 2024 · 2 comments
Closed

Can't find certs in Android device #90

laiyi55 opened this issue Jan 24, 2024 · 2 comments

Comments

@laiyi55
Copy link

laiyi55 commented Jan 24, 2024

        let tls = rustls::ClientConfig::builder()
                .with_native_roots()?
                .with_no_client_auth();


        // Prepare the HTTPS connector
        let https = hyper_rustls::HttpsConnectorBuilder::new()
            .with_tls_config(tls)
            .https_or_http()
            .enable_http1()
            .build();

logcat:
with_native_roots processed 0 valid and 0 invalid certs
no valid native root CA certificates found

How can I fix this problem?

@laiyi55 laiyi55 changed the title can't find certs in Android device Can't find certs in Android device Jan 24, 2024
@djc djc transferred this issue from rustls/hyper-rustls Jan 24, 2024
@djc
Copy link
Member

djc commented Jan 24, 2024

I've moved this issue to the rustls-native-certs repo, as that is the crate that is doing the certificate discovery in the setup you've described. I'm not sure this has ever been tested on Android? I think rustls-platform-verifier might be a better solution here, but there's no integration with hyper-rustls yet.

@ctz
Copy link
Member

ctz commented Jan 24, 2024

I think this is a duplicate of #3

@ctz ctz closed this as not planned Won't fix, can't repro, duplicate, stale Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants