redfish: Set SSL_VERIFYHOST=0 to fix OpenBMC auth

This commit is contained in:
Richard Hughes 2021-11-11 14:22:28 +00:00
parent 5a95cf61d8
commit 68722ec6e4

View File

@ -78,8 +78,10 @@ fu_redfish_backend_request_new(FuRedfishBackend *self)
user_agent = g_strdup_printf("%s/%s", PACKAGE_NAME, PACKAGE_VERSION);
curl_easy_setopt(curl, CURLOPT_USERAGENT, user_agent);
curl_easy_setopt(curl, CURLOPT_CONNECTTIMEOUT, 60L);
if (!self->cacheck)
if (!self->cacheck) {
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYPEER, 0L);
curl_easy_setopt(curl, CURLOPT_SSL_VERIFYHOST, 0L);
}
/* success */
return request;