Skip to content

TLS/https provide alternate CA for server validation #1483

Answered by mcollina
andrew-mcgregor asked this question in Q&A
Discussion options

You must be logged in to vote

I think you could achieve this by passing a connect option to a custom undici.Agent, which is any option that can be passed through https://nodejs.org/api/tls.html#tls_tls_connect_options_callback.

This is the relevant place where this is documented: https://undici.nodejs.org/#/docs/api/Client?id=parameter-connectoptions.
I understand this is not much. Maybe you would like to document this in our doc under the "best practices" label?

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@andrew-mcgregor
Comment options

@mcollina
Comment options

@andrew-mcgregor
Comment options

@OZZlE
Comment options

Answer selected by andrew-mcgregor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants