Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

103
Vistas
Send HTTP request with proxy and certificate

There is this page which I can only access with proxy and certificate.

So is there a way to send a http request with proxy and certificate?

I have tried https-proxy-agent but it does not seem like it supports certificates.

    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 });

Is there any other way to do this in Node.js?

almost 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda