Existe esta página a la que solo puedo acceder con proxy y certificado.
Entonces, ¿hay alguna forma de enviar una solicitud http con proxy y certificado?
https-proxy-agent pero no parece que admita certificados.
const agentWithProxyAndCertificate = (proxy, certificateFilePath) => {
const cert = fsSync.readFileSync(certificateFilePath);
return new HttpsProxyAgent({
key: cert,
cert,
...parseUrl(proxy),
});
};
const httpsAgent = agentWithProxyAndCertificate(US_PROXY, `${__dirname}/cert.pem`);
const client = new HttpClient({ agent: httpsAgent, cookieJar: true });
¿Hay alguna otra forma de hacer esto en Node.js?