Skip to main content

OpensslRsaKeyResource

All Cookstyle Cops


The department is: Chef/Modernize

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


Enabled by default Supports autocorrection Target Chef Version
Enabled Yes 14.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

Name Default value Configurable values
Version Added 5.6.0 String
Exclude
  • **/metadata.rb
Array

Was this page helpful?

×








Search Results