inspec/test/cookbooks/os_prepare/recipes/x509.rb
Christoph Hartmann a96059a3eb x509 integration tests
Signed-off-by: Christoph Hartmann <chris@lollyrock.com>
2017-03-22 11:44:33 +01:00

15 lines
256 B
Ruby

if node['platform_family'] != 'windows'
openssl_x509 '/tmp/mycert.pem' do
common_name 'www.f00bar.com'
org 'Foo Bar'
org_unit 'Lab'
country 'US'
expire 360
end
openssl_rsa_key '/tmp/server.key' do
key_length 2048
end
end