Skip to content

Commit f049698

Browse files
committed
test centos8 ca certificates
Signed-off-by: chenwany <chenwany@amazon.com>
1 parent ed3fc10 commit f049698

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

recipes/update_certificates.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
action :upgrade
2020
end
2121

22+
# centos8 ca certificates file contains DST ROOT CA X3
23+
if node['platform'] == "centos" && node['platform_version'].to_i == 8
24+
execute 'Remove DST ROOT CA X3' do
25+
command 'sed -i \'/# DST Root CA X3/,/-----END CERTIFICATE-----/d\' /etc/ssl/certs/ca-bundle.crt && update-ca-trust'
26+
end
27+
end
28+
2229
# Prevent Chef from using outdated/distrusted CA certificates
2330
# https://github.com/chef/chef/issues/12126
2431
if node['platform'] == 'ubuntu'

0 commit comments

Comments
 (0)