PuppetCertExpireDate - command openssl x509 -in /etc/puppetlabs/puppet/ssl/ca/ca_crt.pem -enddate -noout
¶
The PuppetCertExpireDate parser reads the output of
openssl x509 -in /etc/puppetlabs/puppet/ssl/ca/ca_crt.pem -enddate -noout
.
Sample output of openssl x509 -in /etc/puppetlabs/puppet/ssl/ca/ca_crt.pem -enddate -noout
:
notAfter=Dec 4 07:04:05 2035 GMT
Examples:
>>> type(date_info)
<class 'insights.parsers.puppet_ca_cert_expire_date.PuppetCertExpireDate'>
>>> date_info.expire_date
datetime.datetime(2035, 12, 4, 7, 4, 5)
-
class
insights.parsers.puppet_ca_cert_expire_date.
PuppetCertExpireDate
(context, extra_bad_lines=None)[source]¶ Bases:
insights.core.CommandParser
Read the
openssl x509 -in /etc/puppetlabs/puppet/ssl/ca/ca_crt.pem -enddate -noout
and set the date to propertyexpire_date
.-
expire_date
¶ The date when the puppet ca cert will be expired
- Type
datetime
-