From 6e81123a5d5baeb7962006b5713fc498c1732a11 Mon Sep 17 00:00:00 2001 From: Kubat <mael.martin31@gmail.com> Date: Thu, 25 Feb 2021 12:14:53 +0100 Subject: [PATCH] Forgot that there was multiple calls to the easy_perform --- src/module/module_repo.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/module/module_repo.c b/src/module/module_repo.c index ef60e625..8a605837 100644 --- a/src/module/module_repo.c +++ b/src/module/module_repo.c @@ -315,6 +315,10 @@ retest: curl_easy_setopt(curl_handle, CURLOPT_WRITEDATA, (void *) &file); curl_easy_setopt(curl_handle, CURLOPT_USERAGENT, "libcurl-agent/1.0"); + // 'SSL peer certificate or SSH remote key was not OK' on Fedora + curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYPEER, 0); + curl_easy_setopt(curl_handle, CURLOPT_SSL_VERIFYHOST, 0); + if (CURLE_OK != (ret = curl_easy_perform(curl_handle))) { LOG_ERROR("CURL", "curl_easy_perform failed: %s", curl_easy_strerror(ret)); goto err; -- GitLab