inspec/test/cookbooks/os_prepare/recipes/x509.rb
Tim Smith 68ff8d8b43 Update what we expect for the x509 request
The new built in chef resource creates it a bit differently than the legacy cookbook resource did

Signed-off-by: Tim Smith <tsmith@chef.io>
2019-02-13 22:00:00 -08:00

15 lines
276 B
Ruby

if node['platform_family'] != 'windows'
openssl_x509_certificate '/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