Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

104
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!