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

174
Views
Can axois implement curl -cacert <file> <url>?

I want to get the content of curl -cacert \<file\> \<url\> in my JavaScript API with axois but I am confused where to add the specified certificate file. Or can other libs than axois are able to implement this?

I try to do:

const agent = new https.Agent({ca: fs.readFileSync(<cacert file>),});

var instance = axios.create({ agent: agent });

const response = await instance.get(url);

It seems not working. Any suggestions for this? Thank you so much!

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!