mirror of
https://github.com/inspec/inspec
synced 2024-12-19 17:43:44 +00:00
4b3095dac2
Remove container setup that comes for free with the dokken containers now Use the new openssl resource names Remove all the encoding statements that even rubocop doesn't recommend anymore Remove some compatibility with centos-5 and ubuntu 15.10 Signed-off-by: Tim Smith <tsmith@chef.io>
15 lines
272 B
Ruby
15 lines
272 B
Ruby
if node['platform_family'] != 'windows'
|
|
|
|
openssl_x509_request '/tmp/mycert.pem' do
|
|
common_name 'www.f00bar.com'
|
|
org 'Foo Bar'
|
|
org_unit 'Lab'
|
|
country 'US'
|
|
expire 360
|
|
end
|
|
|
|
openssl_rsa_private_key '/tmp/server.key' do
|
|
key_length 2048
|
|
end
|
|
|
|
end
|