letsencrypt – change email (certificate expiration notice)

vim /etc/letsencrypt/accounts/acme-v01.api.letsencrypt.org/directory/61ddfb6eXXXXX0ad011082342d21/regr.json

here you can change your contact mail:

{„body“: {„contact“: [„mailto:OLDMAIL@HOSTNAME.COM“]

But in my case this wasn’t working. I figured out that i have to resync the email address to the letsencrypt server with certbot.

Clone the project and try to update your email:

https://github.com/certbot/certbot

./certbot-auto register –update-registration –email letsencrypt@mattionline.de

But every time i get this error:

2016-12-23 11:38:56,105:DEBUG:acme.client:Received response <Response [202]> (headers: {‚Content-Length‘: ‚658‘, ‚Boulder-Request-Id‘: ‚CkGIjgcGc-FjsZE1JZVRIGQFOZTcSwklzUZLpUjI‘, ‚Expires‘: ‚Fri, 23 Dec 2016 11:38:55 GMT‘, ‚Server‘: ’nginx‘, ‚Connection‘: ‚keep-alive‘, ‚Link‘: ‚<https://acme-v01.api.letsencrypt.org/acme/new-authz>;rel=“next“, <https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf>;rel=“terms-of-service“‚, ‚Cache-Control‘: ‚max-age=0, no-cache, no-store‘, ‚Pragma‘: ’no-cache‘, ‚Boulder-Requester‘: ‚1141062‘, ‚Date‘: ‚Fri, 23 Dec 2016 11:38:55 GMT‘, ‚Content-Type‘: ‚application/json‘, ‚Replay-Nonce‘: ‚LGnEf4aT23-XwrSFCa4Mcq8EXx9XzHpFXz2fx4kc‘}): ‚{\n „id“: 1141062,\n „key“: {\n „kty“: „RSA“,\n „n“: „vn3EaVPQnJSHuT3qVF78J__RKJk5r9P0XQJzgdpNjBh1WcsC2p5e2ji7d-CJrKZZp_31CV6cTPWaaW6nTDpXU-UJy9UWp5O7sdchjygvkeYcEFFAkTfXn77eor84HR5Z2dj3nFVUgDnClOrYadiDun7TtfDxwWuLb9ZckLF2ZmBDDLOCe0sqaGa1nbsXrfn6UVdEcQlqw-CuUGWGyUiN8nmc8JIKN5FhS8SGnUqMQmnn_ArmlefE25Mq2CrzZyhqqRv6y5PR-711iVoxa7MMD1LFTz8-jAp2WoT1NhDchc_Bz3xDt7cNrKYQaNJ64rOh4A-V97e9rw“,\n „e“: „AQAB“\n },\n „contact“: [\n „mailto:letsencrypt@mattionline.de“\n ],\n „agreement“: „https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf“,\n „initialIp“: „89.238.67.249“,\n „createdAt“: „2016-04-09T20:49:17Z“,\n „Status“: „valid“\n}‘
2016-12-23 11:38:56,110:DEBUG:certbot.main:Exiting abnormally:
Traceback (most recent call last):
File „/root/.local/share/letsencrypt/bin/letsencrypt“, line 11, in <module>
sys.exit(main())
File „/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/main.py“, line 776, in main
return config.func(config, plugins)
File „/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/certbot/main.py“, line 413, in register
body=acc.regr.body.update(contact=(‚mailto:‘ + config.email,))))
File „/root/.local/share/letsencrypt/local/lib/python2.7/site-packages/acme/client.py“, line 132, in update_registration
raise errors.UnexpectedUpdate(regr)
UnexpectedUpdate: RegistrationResource(body=Registration(certificates=None, contact=(‚mailto:letsencrypt@mattionline.de‘,), authorizations=None, agreement=u’https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf‘, key=JWKRSA(key=<ComparableRSAKey(<cryptography.hazmat.backends.openssl.rsa._RSAPublicKey object at 0x7f3670c0c510>)>)), uri=u’https://acme-v01.api.letsencrypt.org/acme/reg/1141062′, new_authzr_uri=u’https://acme-v01.api.letsencrypt.org/acme/new-authz‘, terms_of_service=u’https://letsencrypt.org/documents/LE-SA-v1.0.1-July-27-2015.pdf‘)

Kommentar verfassen

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

Scroll to Top