Skip to main content

Chef/Modernize/OpensslRsaKeyResource

Cookstyle cops page

The Cookstyle cops department: Chef/Modernize

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