Plugin: aj.plugins.check_certificates.api

aj.plugins.check_certificates.api.CertLimitSSL(hostname, port)[source]

Get the SSL certificate from a host.

Parameters:
  • hostname (string) – Hostname
  • port (integer) – Port
Returns:

OpenSSL cert

Return type:

OpenSSL cert

aj.plugins.check_certificates.api.CertLimitSTARTTLS(hostname)[source]

Get the SSL certificate from host with STARTTLS connection on port 587.

Parameters:hostname (string) – Hostname
Returns:OpenSSL cert
Return type:OpenSSL cert
aj.plugins.check_certificates.api.checkOnDom(hostname, port='443')[source]

Store all details from a certificate into a dict and add a status attribute to display a bootstrap class for the time remaining before renew : - renew the next 7 days : danger - renew the next 14 days: warning - renew the next 28 days : info - or success

Parameters:
  • hostname (string) – Hostname
  • port (string) – Port to test, default 443
Returns:

Dict with all details from the certificate

Return type:

dict


Comments

comments powered by Disqus