I have a file/certificate in next format rootcert.pem. How to use this certificate with curl ?

  • On what operating system? How was curl built? – Michael Hampton May 23 '18 at 16:33
  • Standart curl build from ubuntu for example. – Bdfy May 23 '18 at 17:19

You could try to use key --cacert or separate this certificate to three different files, put them in one directory and use key --capath.

curl --cacert ~/cert.pem https://yoursite.tld


curl --capath ~/certdir/ https://yoursite.tld

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.