forked from rapid7/metasploitable3
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
see https://www.openssl.org/blog/blog/2021/09/13/LetsEncryptRootCertExpire/: > The currently recommended certificate chain as presented to Let’s Encrypt ACME clients when new certificates are issued contains an intermediate certificate (ISRG Root X1) that is signed by an old DST Root CA X3 certificate that expires on 2021-09-30. In some cases the OpenSSL 1.0.2 version will regard the certificates issued by the Let’s Encrypt CA as having an expired trust chain. (The Ubuntu VM is on OpenSSL 1.0.1f) closes rapid7#590
- Loading branch information
1 parent
408d368
commit 659599f
Showing
3 changed files
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters