-
We are looking to using workerd to allow trusted third parties to run data mappers in our environment. Some of those mappers might require calling public APIs that use mTLS. Does the fetch API in workerd allow setting client certificates? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
As a matter of fact, yes, it does! You will want to configure a service of type |
Beta Was this translation helpful? Give feedback.
As a matter of fact, yes, it does!
You will want to configure a service of type
ExternalServer
which points at the specific remote API endpoint. You can then specify itstlsOptions
, where you would set akeypair
. Since these options are applying on the client side, the keypair will be used as a client certificate when talking to the given service. You would then configure your worker with a service binding pointing at theExternalServer
.