Skip to content

Commit

Permalink
Explicitly set .p12 cert type
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperlarson committed Sep 4, 2024
1 parent 9c1aea9 commit a2ffdb7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/forti_api/api.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ class FortiAPI {
curl_easy_setopt(curl, CURLOPT_WRITEDATA, &readBuffer);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 1L);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 1L);
curl_easy_setopt(curl, CURLOPT_SSLCERTTYPE, "P12"); // Explicitly set certificate type to P12
curl_easy_setopt(curl, CURLOPT_CAINFO, FortiAuth::get_ca_cert_path().c_str());
curl_easy_setopt(curl, CURLOPT_SSLCERT, FortiAuth::get_ssl_cert_path().c_str());
curl_easy_setopt(curl, CURLOPT_KEYPASSWD, FortiAuth::get_cert_password().c_str());
Expand Down

0 comments on commit a2ffdb7

Please sign in to comment.