linkcheck.plugins.sslcertcheck

Handle https links.

Classes

SslCertificateCheck(config)

Check SSL certificate expiration date.

class linkcheck.plugins.sslcertcheck.SslCertificateCheck(config)[source]

Bases: _ConnectionPlugin

Check SSL certificate expiration date. Only internal https: links will be checked. A domain will only be checked once to avoid duplicate warnings. The expiration warning time can be configured with the sslcertwarndays option.

Initialize plugin.

applies_to(url_data)[source]

Check validity, scheme, extern and url_connection.

check(**kwargs)[source]

Run all SSL certificate checks that have not yet been done. OpenSSL already checked the SSL notBefore and notAfter dates.

check_ssl_valid_date(url_data, cert)[source]

Check if the certificate is still valid, or if configured check if it’s at least a number of days valid.

classmethod read_config(configparser)[source]

Read configuration file options.