Skip to content

Commit

Permalink
suppress cert check from phpmyadmin.net
Browse files Browse the repository at this point in the history
Supress the certificate check and validate a file has the
pre-detemined checksum due to root certificate processing
issues on EOL Ubuntu 14.04 OS.
  • Loading branch information
jmartin-tech committed Jan 7, 2022
1 parent cec1d43 commit 4556f96
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion chef/cookbooks/metasploitable/recipes/phpmyadmin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@

bash "download and extract phpmyadmin" do
code <<-EOH
wget -c -t 3 -O /tmp/phpMyAdmin-3.5.8-all-languages.tar.gz https://files.phpmyadmin.net/phpMyAdmin/3.5.8/phpMyAdmin-3.5.8-all-languages.tar.gz
wget -c -t 3 --no-check-certificate -O /tmp/phpMyAdmin-3.5.8-all-languages.tar.gz https://files.phpmyadmin.net/phpMyAdmin/3.5.8/phpMyAdmin-3.5.8-all-languages.tar.gz
echo "a129d4f03901c047799f634b122734ab687b48975563c87adbf5dea679676e11 /tmp/phpMyAdmin-3.5.8-all-languages.tar.gz" | shasum -a 256 --check --status
tar xvfz /tmp/phpMyAdmin-3.5.8-all-languages.tar.gz -C /var/www/html
mv /var/www/html/phpMyAdmin-3.5.8-all-languages /var/www/html/phpmyadmin
EOH
Expand Down

0 comments on commit 4556f96

Please sign in to comment.