He encontrado que realmente hay muy poca información sobre este tema. Ya tengo un dll haciendo publicaciones exitosas usando libcurl.Usando libcurl & SSL
He compilado libcurl con openssl para funcionalidad ssl.
Aquí está un ejercicio de mi configuración de curvatura original.
curl_easy_setopt(handle, CURLOPT_ERRORBUFFER, errorBuffer);
//curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER , 1);
//curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST , 1);
//curl_easy_setopt(curl, CURLOPT_CAINFO , "./ca.cert");
curl_easy_setopt(handle, CURLOPT_POSTFIELDS, cParam);
curl_easy_setopt(handle, CURLOPT_POSTFIELDSIZE, strlen(cParam));
curl_easy_setopt(handle, CURLOPT_FOLLOWLOCATION, 1);
curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, Request::writer);
curl_easy_setopt(handle, CURLOPT_WRITEDATA, &buffer);
curl_easy_setopt(handle, CURLOPT_URL, cURL);
Mi pregunta a los que hemos hecho esto antes, ¿es tan fácil como simplemente añadiendo las líneas de arriba para obtener SSL funcione (siempre y cuando exista el certificado)? ¿O es más complicado?
Lo curioso es que no estoy completamente seguro de cómo funciona SSL. Nunca he trabajado con eso antes. ¿Debo guardar una clave en mi aplicación y enviarla con cada solicitud? De todos modos mi pregunta principal fue la primera. Gracias de antemano.
relacionado: http://stackoverflow.com/questions/197444/building-libcurl-with-ssl-support-on- windows –