Skip to content

Read from $NODE_EXTRA_CA_CERTS instead of server.https? #19531

Closed Answered by MarcusCaspeco
MarcusCaspeco asked this question in Q&A
Discussion options

You must be logged in to vote

I think I am confusing two concepts, servers need to present certs/keys and clients need to validate outgoing HTTPS requests with system CAs. So I probably want the cert/key here, and the NODE_EXTRA_CA_CERTS is irrelevant. The client code in the browser does the outgoing HTTPS requests which doesn't have to do with vite, that's why it works here.

I still need NODE_EXTRA_CA_CERTS for some other Node.js projects I have, unrelated to vite, since they acts as clients in those cases. I just figured "both are Node.js, why would it be different", but clearly they are doing different things.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MarcusCaspeco
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant