suppress cert check from phpmyadmin.net

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.
This commit is contained in:
Jeffrey Martin 2022-01-06 10:46:54 -06:00
parent cec1d4395d
commit 4556f96fe4
No known key found for this signature in database
GPG Key ID: 0CD9BBC2AF15F171
1 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,8 @@ include_recipe 'metasploitable::php_545'
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