certbot.account

Creates ACME accounts for server.

class certbot.account.Account(regr, key, meta=None)[source]

Bases: object

ACME protocol registration.

Variables:
  • regr (RegistrationResource) – Registration Resource
  • key (JWK) – Authorized Account Key
  • Meta – Account metadata
  • id (str) – Globally unique account identifier.
class Meta(**kwargs)[source]

Bases: acme.jose.json_util.JSONObjectWithFields

Account metadata

Variables:
  • creation_dt (datetime.datetime) – Creation date and time (UTC).
  • creation_host (str) – FQDN of host, where account has been created.

Note

creation_dt and creation_host are useful in cross-machine migration scenarios.

Account.slug

Short account identification string, useful for UI.

certbot.account.report_new_account(config)[source]

Informs the user about their new ACME account.

class certbot.account.AccountMemoryStorage(initial_accounts=None)[source]

Bases: certbot.interfaces.AccountStorage

In-memory account strage.

class certbot.account.AccountFileStorage(config)[source]

Bases: certbot.interfaces.AccountStorage

Accounts file storage.

Variables:config (IConfig) – Client configuration
save_regr(account)[source]

Save the registration resource.

Parameters:account (Account) – account whose regr should be saved
delete(account_id)[source]

Delete registration info from disk

Parameters:account_id – id of account which should be deleted