https client using libcurl and openssl

External libraries (GTK, GSL, SDL, Allegro, OpenGL, etc) questions.
Post Reply
JohnD
Posts: 1
Joined: Apr 21, 2018 19:36

https client using libcurl and openssl

Post by JohnD »

I'm working on an windows program that needs to use https. I'm using libcurl, openssl (openssl-Win32) & everything compiles OK. I can do http just fine, but https doesn't seem to work. I think it may be a cert issue. How do I specify trusted certs and/or ssl options?
grindstone
Posts: 862
Joined: May 05, 2015 5:35
Location: Germany

Re: https client using libcurl and openssl

Post by grindstone »

You can use

Code: Select all

curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0)
to skip the certificate verification.
Post Reply