6

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

Bdfy
  • 181
  • 1
  • 1
  • 3

1 Answers1

10

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
Alexander Tolkachev
  • 4,608
  • 3
  • 14
  • 23