I have a file/certificate in next format rootcert.pem. How to use this certificate with curl ?
You could try to use key
--cacert or separate this certificate to three different files, put them in one directory and use key
curl --cacert ~/cert.pem https://yoursite.tld
curl --capath ~/certdir/ https://yoursite.tld