Support TLS client certificate and key configuration in built-in fetch (2-way TLS) #79652
alinayebi9080
started this conversation in
Ideas
Replies: 1 comment
-
Hey, just wanted to chime in and say I totally agree with this idea. 🔐 Why it mattersA lot of enterprise APIs (especially in finance, healthcare, or internal B2B systems) require mutual TLS — that means the client has to present a certificate and private key to access the service securely. But right now, the built-in
...which makes it impossible to call those secure services unless we use a workaround.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Goals
The built-in
fetch
provided by Next.js (when used in server components or API routes) currently lacks support for configuring client TLS options, such ascert
,key
, andca
for mutual TLS (2-way TLS) authentication.This limitation prevents secure communication with external services that require 2-way TLS, which is common in enterprise APIs or private services.
Non-Goals
No response
Background
I'd like the ability to pass custom HTTPS agent options to
fetch
, such as:Beta Was this translation helpful? Give feedback.
All reactions