Skip to content

Conversation

@martykulma
Copy link

Adds a new function trust_cert_ca_pem that will accept a PEM formatted certificate as a string.

Notes

  • I had to refresh the certificates in /docker to test it, but did not include them in the PR. See the certs README for updating them.
  • native-tls doesn't work didn't work on macos, rustls and vendored-openssl are good

@martykulma martykulma requested review from petrosagg and ptravers June 25, 2025 21:13
@martykulma
Copy link
Author

I just found that there was already a PR opened against the upstream repo: prisma#290 - i can grab those changes instead

/// Will panic in case `trust_cert` or `trust_cert_ca` was called before.
///
/// - Defaults to validating the server certificate is validated against system's certificate storage.
pub fn trust_cert_ca_pem(&mut self, cert: impl ToString) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: maybe suffix with _string to clarify that we are passing a string literal containing a certificate?

@martykulma martykulma merged commit 54c9b7b into mz_changes Jun 30, 2025
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

Successfully merging this pull request may close these issues.

3 participants