Replies: 1 comment 2 replies
-
I know this is old but we have a similar use-case. We need to fetch/check the client certificates on-the-fly (when the request is made) and they are only valid for five minutes. Statically configuring the certificates won't work for us. Is there any way that we can alter/set the client certificates in the onProxyReq event handler? @chimurai can you please tell us if this is (im)possible? If it is not possible we need to rethink our solution. |
Beta Was this translation helpful? Give feedback.
2 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.
-
Is this a question?
I asked this over on StackOverflow but haven't gotten a response
I'm using this library to create a proxy to a server that requires certificates (
cert
,ca
, andkey
). The problem is, these certs expire over time, so I need to retrieve new certificates. However, I'm unsure how to attach a new certificate to an existing proxy.My basic setup is similar to the following:
Is it possible to insert a middleware before the
proxy()
to retrieve new certs and haveproxy()
use the new certs? Something likeOr will that not work? Can I use
onProxyReq()
to manipulate the certs? Or can I tear down the originalproxy()
instance and instantiate a new one?Setup
Beta Was this translation helpful? Give feedback.
All reactions