Skip to content

Expose Default Certificate Constants#251

Open
ErikMcClure wants to merge 1 commit into
httpmock:masterfrom
ErikMcClure:patch-1
Open

Expose Default Certificate Constants#251
ErikMcClure wants to merge 1 commit into
httpmock:masterfrom
ErikMcClure:patch-1

Conversation

@ErikMcClure

@ErikMcClure ErikMcClure commented Jul 14, 2026

Copy link
Copy Markdown

If you control the TLS connection chain, there's no need to add a test certificate to the machine keychain. Instead, if the library simply exposed the already existing constants, these could be turned into a Certificate using tokio_native_tls::native_tls::Certificate::from_pem, which could then be fed into tokio_native_tls::native_tls::TlsConnector::builder().add_root_certificate inside a test, which is more convenient.

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.

1 participant