From 87759cf4da337d68c62cef30c74d8c6dae39ae31 Mon Sep 17 00:00:00 2001 From: Ampli-fier <22896574+Ampli-fier@users.noreply.github.com> Date: Sat, 31 Mar 2018 23:38:14 +0200 Subject: [PATCH] allow curl to perform "insecure" SSL connections allow curl to perform "insecure" SSL connections using flag '--insecure' Without this flag, curl exited with error 51: The peer's SSL certificate or SSH MD5 fingerprint was not OK. autoconfig attempts to https URL did not succeed. --- cmdline/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmdline/main.c b/cmdline/main.c index 1b323857..61be6e49 100644 --- a/cmdline/main.c +++ b/cmdline/main.c @@ -81,7 +81,7 @@ static uintptr_t receive_event(mrmailbox_t* mailbox, int event, uintptr_t data1, { char* ret = NULL; char* tempFile = mr_get_fine_pathNfilename(mailbox->m_blobdir, "curl.result"); - char* cmd = mr_mprintf("curl --silent --location --fail %s > %s", (char*)data1, tempFile); /* --location = follow redirects */ + char* cmd = mr_mprintf("curl --silent --location --fail --insecure %s > %s", (char*)data1, tempFile); /* --location = follow redirects */ int error = system(cmd); if( error == 0 ) { /* -1=system() error, !0=curl errors forced by -f, 0=curl success */ size_t bytes = 0;