mirror of
https://github.com/inspec/inspec
synced 2024-11-27 15:10:44 +00:00
16 lines
256 B
Ruby
16 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
|