Skip to content

Commit

Permalink
Add warning to -nocert option
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Rovinski <rovinski@users.noreply.github.com>
  • Loading branch information
rovinski authored Sep 8, 2024
1 parent 9c48043 commit 15f751c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions etc/DependencyInstaller.sh
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,10 @@ Usage: $0
# Installs dependencies required to run CI
$0 -nocert
# Disable certificate checks
# WARNING: Do not use without a good reason,
# like working around a firewall. This opens
# vulnerability to man-in-the-middle (MITM)
# attacks.
EOF
exit "${1:-1}"
Expand Down Expand Up @@ -784,6 +788,9 @@ while [ "$#" -gt 0 ]; do
export PREFIX="$(realpath $(echo $1 | sed -e 's/^[^=]*=//g'))"
;;
-nocert)
echo "WARNING: security certificates for downloaded packages will not be checked. Do not use" >&2
echo " -nocert without a good reason, like working around a firewall. This opens" >&2
echo " vulnerability to man-in-the-middle (MITM) attacks." >&2
shopt -s expand_aliases
alias wget="wget --no-check-certificate"
export GIT_SSL_NO_VERIFY=true
Expand Down

0 comments on commit 15f751c

Please sign in to comment.