Skip to main content

OpensslX509Resource

All Cookstyle Cops


The department is: Chef/Modernize

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


Enabled by defaultSupports autocorrectionTarget Chef Version
EnabledYes14.4+

The openssl_x509 resource was renamed to openssl_x509_certificate in Chef Infra Client 14.4. The new resource name should be used.

Examples

incorrect

openssl_x509 '/etc/httpd/ssl/mycert.pem' do
  common_name 'www.f00bar.com'
  org 'Foo Bar'
  org_unit 'Lab'
  country 'US'
end

correct

openssl_x509_certificate '/etc/httpd/ssl/mycert.pem' do
  common_name 'www.f00bar.com'
  org 'Foo Bar'
  org_unit 'Lab'
  country 'US'
end

Configurable attributes

NameDefault valueConfigurable values
Version Added5.6.0String
Exclude
  • **/metadata.rb
Array

Was this page helpful?