0

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
1

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

or

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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