You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to set a client certificate to connect to our service, when using a proxy the connection fails. new HttpsProxyAgent(process.env.HTTPS_PROXY, { pfx: buffer })
These connectOpts options are only used to connect, but when the connection is upgraded the connectOpts are ignored.
My perfered option would be to have second argument to the HttpsProxyAgent class with upgradeOpts. new HttpsProxyAgent(process.env.HTTPS_PROXY, {}, { pfx: buffer })
When upgrading the connection these could be used with the regular options:
With the new argument it would be even possible to connect to a https proxy with a client certificate and to the remote server with another client certificate. When using the original connectOpts setting a client certificate might disturb the connection to the proxy server.
The text was updated successfully, but these errors were encountered:
I need to set a client certificate to connect to our service, when using a proxy the connection fails.
new HttpsProxyAgent(process.env.HTTPS_PROXY, { pfx: buffer })
These
connectOpts
options are only used to connect, but when the connection is upgraded theconnectOpts
are ignored.proxy-agents/packages/https-proxy-agent/src/index.ts
Lines 144 to 148 in e1e80ab
My perfered option would be to have second argument to the HttpsProxyAgent class with
upgradeOpts
.new HttpsProxyAgent(process.env.HTTPS_PROXY, {}, { pfx: buffer })
When upgrading the connection these could be used with the regular options:
With the new argument it would be even possible to connect to a https proxy with a client certificate and to the remote server with another client certificate. When using the original
connectOpts
setting a client certificate might disturb the connection to the proxy server.The text was updated successfully, but these errors were encountered: