Skip to content

rustls: CURLOPT_CAINFO_BLOB support#8255

Closed
sagebind wants to merge 1 commit into
curl:masterfrom
sagebind:rustls-blob-support
Closed

rustls: CURLOPT_CAINFO_BLOB support#8255
sagebind wants to merge 1 commit into
curl:masterfrom
sagebind:rustls-blob-support

Conversation

@sagebind

@sagebind sagebind commented Jan 9, 2022

Copy link
Copy Markdown
Contributor

Add support for CURLOPT_CAINFO_BLOB and CURLOPT_PROXY_CAINFO_BLOB to the rustls TLS backend. Multiple certificates in a single PEM string are supported just like OpenSSL does with this option.

This is compatible at least with rustls-ffi 0.8+ which is our new minimum version anyway.

I was able to build and run this on Windows, pulling trusted certs from the system and then add them to rustls by setting CURLOPT_CAINFO_BLOB. Handy!

Add support for `CURLOPT_CAINFO_BLOB` `CURLOPT_PROXY_CAINFO_BLOB` to the rustls TLS backend. Multiple certificates in a single PEM string are supported just like OpenSSL does with this option.

This is compatible at least with rustls-ffi 0.8+ which is our new minimum version anyway.

I was able to build and run this on Windows, pulling trusted certs from the system and then add them to rustls by setting `CURLOPT_CAINFO_BLOB`. Handy!
@bagder

bagder commented Jan 10, 2022

Copy link
Copy Markdown
Member

Thanks!

@bagder bagder closed this in 3be94d8 Jan 10, 2022
@sagebind sagebind deleted the rustls-blob-support branch January 26, 2022 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants