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

518
Views
Jabón de Node js: no se puede crear el cliente: Error: no se puede verificar el primer certificado

Estoy tratando de conectar el servicio web SOAP usando el paquete de jabón

Aquí está mi código

 var options = { wsdl_options: { forever: true, rejectUnauthorized: false, strictSSL: false, pfx: fs.readFileSync(__dirname + '/certs/test_cert.pfx'), passphrase: '123123' } }; soap.createClient(process.env.SOAP_ENDPOINT, options, function (err, client) { console.log(err); console.log(client); });

Al ejecutar esto me sale el siguiente error

 Error: unable to verify the first certificate at TLSSocket.onConnectSecure (node:_tls_wrap:1531:34) at TLSSocket.emit (node:events:378:20) at TLSSocket._finishInit (node:_tls_wrap:945:8) at TLSWrap.ssl.onhandshakedone (node:_tls_wrap:719:12) { code: 'UNABLE_TO_VERIFY_LEAF_SIGNATURE', config: { url: '<URL>?WSDL', method: 'get',

No estoy seguro de por qué recibo esto, sin embargo, puedo conectarme con éxito a través de la interfaz de usuario de SOAP porque estoy usando un archivo p12.

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!