certbot.account¶
Creates ACME accounts for server.
-
class
certbot.account.Account(regr, key, meta=None)[source]¶ Bases:
objectACME 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:
josepy.json_util.JSONObjectWithFieldsAccount metadata
Variables: - creation_dt (datetime.datetime) – Creation date and time (UTC).
- creation_host (str) – FQDN of host, where account has been created.
Note
creation_dtandcreation_hostare useful in cross-machine migration scenarios.
-
slug¶ Short account identification string, useful for UI.
-
class
certbot.account.AccountMemoryStorage(initial_accounts=None)[source]¶ Bases:
certbot.interfaces.AccountStorageIn-memory account storage.
-
class
certbot.account.RegistrationResourceWithNewAuthzrURI(**kwargs)[source]¶ Bases:
acme.messages.RegistrationResourceA backwards-compatible RegistrationResource with a new-authz URI.
Hack: Certbot versions pre-0.11.1 expect to load new_authzr_uri as part of the account. Because people sometimes switch between old and new versions, we will continue to write out this field for some time so older clients don’t crash in that scenario.
-
class
certbot.account.AccountFileStorage(config)[source]¶ Bases:
certbot.interfaces.AccountStorageAccounts file storage.
Variables: config (IConfig) – Client configuration -
save_regr(account, acme)[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
-
_delete_links_and_find_target_dir(server_path, link_func)[source]¶ Delete symlinks and return the nonsymlinked directory path.
Parameters: - server_path (str) – file path based on server
- link_func (callable) – callable that returns possible links given a server_path
Returns: the final, non-symlinked target
Return type: str
-