Combiners for getting the earliest expiry date from a lot of SSL certificates

This module contains the following combiners:

EarliestNginxSSLCertExpireDate - The earliest expire date in a lot of nginx ssl certificates

Combiner to get the earliest expire date in a lot of nginx ssl certificates.

EarliestHttpdSSLCertExpireDate - The earliest expire date in a lot of httpd ssl certificates

Combiner to get the earliest expire date in a lot of httpd ssl certificates.

EarliestHttpdCertInNSSExpireDate - The earliest expire date in a lot of httpd certificates stored in nss database

Combiner to get the earliest expire date in a lot of httpd certificates stored in nss database.

class insights.combiners.ssl_certificate.EarliestHttpdCertInNSSExpireDate(certificate_info_list)[source]

Bases: insights.combiners.ssl_certificate.EarliestSSLCertExpireDate

Combiner to get the earliest expire date in a lot of httpd certificates stored in NSS database.

Examples

>>> type(httpd_certs_in_nss)
<class 'insights.combiners.ssl_certificate.EarliestHttpdCertInNSSExpireDate'>
>>> httpd_certs_in_nss.earliest_expire_date.str
'Sun Jan 07 05:26:10 2022'
>>> httpd_certs_in_nss.ssl_cert_path
('/etc/httpd/nss', 'testcerta')
class insights.combiners.ssl_certificate.EarliestHttpdSSLCertExpireDate(certificate_info_list)[source]

Bases: insights.combiners.ssl_certificate.EarliestSSLCertExpireDate

Combiner to get the earliest expire date in a lot of httpd ssl certificates.

Examples

>>> type(httpd_certs)
<class 'insights.combiners.ssl_certificate.EarliestHttpdSSLCertExpireDate'>
>>> httpd_certs.earliest_expire_date.str
'Dec 18 07:02:43 2021'
>>> httpd_certs.ssl_cert_path
'/test/d.pem'
class insights.combiners.ssl_certificate.EarliestNginxSSLCertExpireDate(certificate_info_list)[source]

Bases: insights.combiners.ssl_certificate.EarliestSSLCertExpireDate

Combiner to get the earliest expire date in a lot of nginx ssl certificates.

Examples

>>> type(nginx_certs)
<class 'insights.combiners.ssl_certificate.EarliestNginxSSLCertExpireDate'>
>>> nginx_certs.earliest_expire_date.str
'Dec 18 07:02:43 2021'
>>> nginx_certs.ssl_cert_path
'/test/d.pem'
class insights.combiners.ssl_certificate.EarliestSSLCertExpireDate(certificate_info_list)[source]

Bases: object

The base class to get the earliest expiry date from a lot of insights.parsers.ssl_certificate.CertificateInfo instances.

earliest_expire_date

The earliest expire date in string format.

Type

str

ssl_cert_path

The SSL certificate path which is expired first.

Type

str

Examples

>>> type(ssl_certs)
<class 'insights.combiners.ssl_certificate.EarliestSSLCertExpireDate'>
>>> ssl_certs.earliest_expire_date.str
'Dec 18 07:02:43 2021'
>>> ssl_certs.ssl_cert_path
'/test/b.pem'