letsencrypt.renewer

Renewer tool.

Renewer tool handles autorenewal and autodeployment of renewed certs within lineages of successor certificates, according to configuration.

Todo

Sanity checking consistency, validity, freshness?

Todo

Call new installer API to restart servers after deployment

class letsencrypt.renewer._AttrDict(*args, **kwargs)[source]

Bases: dict

Attribute dictionary.

A trick to allow accessing dictionary keys as object attributes.

letsencrypt.renewer.renew(cert, old_version)[source]

Perform automated renewal of the referenced cert, if possible.

Parameters:
  • cert (letsencrypt.storage.RenewableCert) – The certificate lineage to attempt to renew.
  • old_version (int) – The version of the certificate lineage relative to which the renewal should be attempted.
Returns:

A number referring to newly created version of this cert lineage, or False if renewal was not successful.

Return type:

int or bool

letsencrypt.renewer.main(cli_args=['-T', '-E', '-b', 'readthedocs', '-d', '_build/doctrees-readthedocs', '-D', 'language=en', '.', '_build/html'])[source]

Main function for autorenewer script.