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

Add use of Mozilla's root certificates for TLS client communication as a feature #387

Open
harlem88 opened this issue Oct 16, 2024 · 0 comments

Comments

@harlem88
Copy link
Collaborator

rustls_native_certs::load_native_certs().map_err(PairingError::Native)?;

Currently for a TLS communication we use the root_certificate provided by the platform. In some scenarios the platform could not provide a valid root certicate, so we can provide it via webpki-roots.

Example:

#[cfg(feature = "webpki")]
let root_cert_store = RootCertStore {
    roots: webpki_roots::TLS_SERVER_ROOTS.into(),
};
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

1 participant