I have a file/certificate in next format rootcert.pem. How to use this certificate with curl ?
Asked
Active
Viewed 3.5k times
6
-
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 Answers
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