From 68722ec6e4f498546e20c59e84c19443f15c81c0 Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Thu, 11 Nov 2021 14:22:28 +0000 Subject: [PATCH] redfish: Set SSL_VERIFYHOST=0 to fix OpenBMC auth --- plugins/redfish/fu-redfish-backend.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/plugins/redfish/fu-redfish-backend.c b/plugins/redfish/fu-redfish-backend.c index 2465d31a9..e8ae524bc 100644 --- a/plugins/redfish/fu-redfish-backend.c +++ b/plugins/redfish/fu-redfish-backend.c @@ -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;