Skip to content

Commit

Permalink
Verify certificates for HTTPS URLs
Browse files Browse the repository at this point in the history
HTTPS with correct SSL/TLS configuration is quite common now, so let’s
check the certificates.
  • Loading branch information
pmenzel committed Aug 31, 2018
1 parent a771247 commit 728d05f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
1 change: 0 additions & 1 deletion src/bee-download.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ function download_http() {
trap "rm -f ${destination}" EXIT

wget \
--no-check-certificate \
--output-document=${destination} \
--no-clobber \
${repository_url}
Expand Down
7 changes: 0 additions & 7 deletions src/beesh.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -276,7 +270,6 @@ function fetch_one_file() {

print_info "fetching $url"
wget \
${nocheck} \
--output-document="${F}/${file}" \
--no-clobber \
--timeout=60 \
Expand Down

0 comments on commit 728d05f

Please sign in to comment.