-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
feat(tls): custom in memory CA certificates #12219
Conversation
This adds support for using in memory CA certificates for `Deno.startTLS`, `Deno.connectTLS` and `Deno.createHttpClient`. `certFile` is deprecated in `startTls` and `connectTls`, and removed from `Deno.createHttpClient`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Not sure why cli/tests/testdata/045_programmatic_proxy_client.ts
fails with Uncaught TypeError: Error parsing args: serde_v8 error: ExpectedArray
.
serde_v8 bug? Does it expect an Option<Vec<String>>
?
ext/fetch/lib.rs
Outdated
ca_stores: Option<Vec<String>>, | ||
ca_file: Option<String>, | ||
ca_data: Option<ByteString>, | ||
#[serde(default)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I admit I don't understand what this changes. It's also specified on the type.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should force caCerts: undefined
to be deserialized as caCerts: []
. Essentially use Default::default
when the field is falsy or not present.
This adds support for using in memory CA certificates for
Deno.startTLS
,Deno.connectTLS
andDeno.createHttpClient
.certFile
is deprecated instartTls
andconnectTls
, and removedfrom
Deno.createHttpClient
.Closes #11608.