Skip to main content

OpensslX509Resource

The department is: OpensslX509Resource

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

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

Name Default value Configurable values
Version Added 5.6.0 String
Include
Array

Was this page helpful?

×









Search Results