Skip to main content

OpensslRsaKeyResource

The department is: OpensslRsaKeyResource

The full name of the cop is: Chef/Modernize/OpensslRsaKeyResource

Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYes14.0+

The openssl_rsa_key resource was renamed to openssl_rsa_private_key in Chef Infra Client 14.0. The new resource name should be used.

Examples

incorrect

openssl_rsa_key '/etc/httpd/ssl/server.key' do
  key_length 2048
end

correct

openssl_rsa_private_key '/etc/httpd/ssl/server.key' do
  key_length 2048
end

Configurable attributes

NameDefault valueConfigurable values
Version Added5.6.0String
Include
    Array

    Thank you for your feedback!

    ×









    Search Results