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

376
Vistas
How to get axios to work with an AWS ACM public certificate?

I'm surprised to discover that public certificates issued by AWS ACM trigger the error "unable to verify the first certificate" when using axios and node-fetch. However, when I use curl from the command line, I don't get an error. So my questions are:

  1. Why does node behave this way? Curl can use the underlying OS, it seems, which recognizes the CA authority of the AWS ACM issued certificates; does node have its own set of CA authorities?

  2. How can I solve this problem without enabling the rejectUnauthorized option within a configured httpsAgent? Is there a way to get node to behave like curl by e.g. using the OS's set of recognized CA authorities? Is there some setting within the AWS ACM console that might make the certificates more amenable to axios?

NOTE: I am not interested in the solution of configuring axios to recognize any particular CA certificate (I'd like a general solution to enable me to ping multiple AWS ACM issued certificates that I do not necessarily control).

Edit: I'm using OSX 11.3.

Thanks!

over 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