Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions chef/cookbooks/metasploitable/recipes/system_config.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# See https://www.openssl.org/blog/blog/2021/09/13/LetsEncryptRootCertExpire/ and https://github.com/chef/chef/issues/12126

bash 'disable expired DST Root CA X3 certificate' do
code <<-EOS
sed -i 's:^mozilla/DST_Root_CA_X3.crt:!mozilla/DST_Root_CA_X3.crt:' /etc/ca-certificates.conf
update-ca-certificates
EOS
not_if "grep -q '^!mozilla/DST_Root_CA_X3.crt' /etc/ca-certificates.conf"
end

ENV['SSL_CERT_FILE'] = '/etc/ssl/certs/ca-certificates.crt'
1 change: 1 addition & 0 deletions chef/dev/ub1404/Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ Vagrant.configure("2") do |config|

chef.add_recipe "apt::default"
chef.add_recipe "iptables::default"
chef.add_recipe "metasploitable:system_config"
chef.add_recipe "metasploitable::users"
chef.add_recipe "metasploitable::mysql"
chef.add_recipe "metasploitable::apache_continuum"
Expand Down
1 change: 1 addition & 0 deletions packer/templates/ubuntu_1404.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@
],
"run_list": [
"apt::default",
"metasploitable::system_config",
"metasploitable::users",
"metasploitable::mysql",
"metasploitable::apache_continuum",
Expand Down