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

132
Views
Error: tunneling socket could not be established, cause=Hostname/IP does not match certificate's altnames:

I’m trying to use a proxy in NodeJS but I’m getting an error

Error: tunneling socket could not be established, cause=Hostname/IP does not match certificate's altnames: Host: ipv4.icanhazip.com. is not in the cert's altnames: DNS:*.packetstream.io, DNS:packetstream.io

Code:

const request = require('request');
const proxy = "https://USERNAME:PASSWORD@proxy.packetstream.io:PORT";
const url = "https://ipv4.icanhazip.com"
const proxiedRequest = request.defaults({
  'proxy': proxy,
  rejectUnauthorized: false
});

proxiedRequest.get(url, function(err, resp, body) {
  if (err) return console.log(err)
  console.log(body)
});

about 4 years ago · Juan Pablo Isaza
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!