View existing email certbot or

Below updates email in certbot

sudo certbot update_account --email

  1. How to view email in certbot?
  2. How to view & update email in with respect to certificate expiring emails.

yes, I know certbot & are different but that does not solve my problem.

At least help on viewing existing email of registered domains on my server.

1 Like

I don't think that Certbot provides any way to show the contact email for your Let's Encrypt ACME account.

It is possible in theory, but it would involve modifying Certbot or using/creating a different program.

The expiration emails are sent to the contact address of your Let's Encrypt ACME account, which is the same as what you input to Certbot.

Had you run the command you suggested in (1), all future expiration emails would be sent to

1 Like

One of the JSON files in /etc/letsencrypt/accounts/ contains what Certbot thinks your account’s email address is.

Certbot’s log files will also include it.

However, Certbot’s local information can become out-of-date if you do something complicated like copy your account files to a second server and then use “certbot update_account” on one of the servers to change the address.

As an addendum, the below Python script will fetch your current email address from the Let's Encrypt ACME server, using the account key from Certbot:

#!/usr/bin/env python

from acme.client import ClientV2
from acme.client import ClientNetwork
from acme import messages
import josepy as jose
from glob import glob

with open(glob('/etc/letsencrypt/accounts/*/private_key.json')[0], 'rb') as f:
    key = jose.JWK.json_loads(

with open(glob('/etc/letsencrypt/accounts/*/regr.json')[0], 'r') as f:
    regr = messages.RegistrationResource.json_loads(

net = ClientNetwork(key)
directory = messages.Directory.from_json(net.get("").json())
client = ClientV2(directory, net) = regr
resp = client._post(regr.uri, None)



$ python

Is it in regr.json on your system? The systems I run it on have only recorded the account URI.

In a similar vein, I couldn't find any way to trick Certbot to query the registration so that it would get reflected in its logfile.


Yup! Maybe it's changed. On one installation I have something like:

{"body": {"status": "valid", "contact": [""], "agreement": "", "key": { ... }, "uri": "", "terms_of_service": ""}

For me, the stuff from regr.json gets logged in the Account object repr() in the "DEBUG:certbot._internal.main:Picked account:" lines of the logs.

Looks Certbot stopped saving it since 0.26.0 -

strip unnecessary items from regr before saving


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.