Need HttpsProxyAgent to support setting the CA Cert
robertpatrick opened this issue · 1 comments
robertpatrick commented
I have existing code that uses https.Agent doing the following and it is working when not on my company network:
import { Agent } from 'https';
...
const agent = new Agent({ ca: caCert });
const config: AxiosRequestConfig = {
httpsAgent: agent
headers: {
Authorization: `Bearer ${ token }`,
Cookie: getHeader(event, 'cookie'),
},
};
const res = await axios.get(`${ adminClusterBaseUrl }/version`, config);
I tried swapping out https.Agent
with HttpsProxyAgent
and passing the proxy URL and the same options to the constructor but I am getting an error that seems to indicate that it is not honoring the ca
attribute.
sibelius commented
is there a plan for this ?