view full story

http://www.linuxquestions.org – I have an issue with using root certificate, with curl CURLOPT_SSL_CTX_FUNCTION option. I tried one of the example program docs/examples/cacertinmem.c which is avilable along with the curl source download. This program is using CURLOPT_SSL_CTX_FUNCTION to set the hardcoded certificate before doing https transaction. But this program works only if I put the certificate bundle in the proper path. That means https transaction is happening beacuse of the certficate bundle and not from the root certificate which is provided in the program. This is also clear from the verbose output. As per curl doc (HowTos)