From 728d05f647b7dba5a4dc23f4158583d0fc8c6774 Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Mon, 27 Aug 2018 15:53:03 +0200 Subject: [PATCH] Verify certificates for HTTPS URLs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit HTTPS with correct SSL/TLS configuration is quite common now, so let’s check the certificates. --- src/bee-download.sh.in | 1 - src/beesh.sh.in | 7 ------- 2 files changed, 8 deletions(-) diff --git a/src/bee-download.sh.in b/src/bee-download.sh.in index cb9b881..faa81f7 100644 --- a/src/bee-download.sh.in +++ b/src/bee-download.sh.in @@ -91,7 +91,6 @@ function download_http() { trap "rm -f ${destination}" EXIT wget \ - --no-check-certificate \ --output-document=${destination} \ --no-clobber \ ${repository_url} diff --git a/src/beesh.sh.in b/src/beesh.sh.in index df30249..394af5b 100644 --- a/src/beesh.sh.in +++ b/src/beesh.sh.in @@ -262,12 +262,6 @@ function fetch_one_file() { print_info "copying file ${url}" cp -v "${url}" "${F}/${file}" else - if [ "${url:0:5}" == "https" ] ; then - nocheck="--no-check-certificate" - else - nocheck="" - fi - if [ ! -s "${F}/${file}" ] ; then rm -vf "${F}/${file}" fi @@ -276,7 +270,6 @@ function fetch_one_file() { print_info "fetching $url" wget \ - ${nocheck} \ --output-document="${F}/${file}" \ --no-clobber \ --timeout=60 \