Can't update email address

I’m trying to migrate away from an old email provider and got the email that my cert was up for renewal - did the renewal with no problem. Found info to update my email at https://letsencrypt.org/docs/expiration-emails/ and tried it - it didn’t work. Ran apt-get update and upgrade and did catch an upgrade to certbot. Tried again, still failed - similar (if not same) error. This is the most recent info.

My domain is: andrewpometti.com

I ran this command: certbot register --update-registration --email andrew@andrewpometti.com

It produced this output:
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
An unexpected error occurred:
UnexpectedUpdate: RegistrationResource(body=Registration(certificates=None, contact=(‘mailto:andrew@andrewpometti.com’,), authorizations=None, agreement=u’https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf’, key=JWKRSA(key=<ComparableRSAKey(<cryptography.hazmat.backends.openssl.rsa._RSAPublicKey object at 0x7f2471f16f90>)>)), uri=u’https://acme-v01.api.letsencrypt.org/acme/reg/6531596’, new_authzr_uri=u’https://acme-v01.api.letsencrypt.org/acme/new-authz’, terms_of_service=u’https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf’)
Please see the logfiles in /var/log/letsencrypt for more details.

I have the log file if you need it, but wasn’t sure about posting it publicly.

Thanks.

Hi @pometti

that would help.

2018-08-30 22:36:04,218:DEBUG:certbot.main:Root logging level set at 20
2018-08-30 22:36:04,219:INFO:certbot.main:Saving debug log to /var/log/letsencrypt/letsencrypt.log
2018-08-30 22:36:04,220:DEBUG:certbot.main:certbot version: 0.10.2
2018-08-30 22:36:04,220:DEBUG:certbot.main:Arguments: [’–update-registration’, ‘–email’, ‘andrew@andrewpometti.com’]
2018-08-30 22:36:04,220:DEBUG:certbot.main:Discovered plugins: PluginsRegistry(PluginEntryPoint#webroot,PluginEntryPoint#null,PluginEntryPoint#manual,PluginEntryPoint#standalone)
2018-08-30 22:36:04,310:DEBUG:root:Sending GET request to https://acme-v01.api.letsencrypt.org/directory.
2018-08-30 22:36:04,325:INFO:requests.packages.urllib3.connectionpool:Starting new HTTPS connection (1): acme-v01.api.letsencrypt.org
2018-08-30 22:36:04,566:DEBUG:requests.packages.urllib3.connectionpool:“GET /directory HTTP/1.1” 200 658
2018-08-30 22:36:04,567:DEBUG:acme.client:Received response:
HTTP 200
Server: nginx
Content-Type: application/json
Content-Length: 658
Replay-Nonce: pumu2Cte8qmhmK4pwUhgWZX4tn616cm2cETcfTuRsYI
X-Frame-Options: DENY
Strict-Transport-Security: max-age=604800
Expires: Thu, 30 Aug 2018 22:36:05 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Thu, 30 Aug 2018 22:36:05 GMT
Connection: keep-alive

{
“DYNVO0IQXEU”: “Adding random entries to the directory”,
“key-change”: “https://acme-v01.api.letsencrypt.org/acme/key-change”,
“meta”: {
“caaIdentities”: [
letsencrypt.org
],
“terms-of-service”: “https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf”,
“website”: “https://letsencrypt.org
},
“new-authz”: “https://acme-v01.api.letsencrypt.org/acme/new-authz”,
“new-cert”: “https://acme-v01.api.letsencrypt.org/acme/new-cert”,
“new-reg”: “https://acme-v01.api.letsencrypt.org/acme/new-reg”,
“revoke-cert”: “https://acme-v01.api.letsencrypt.org/acme/revoke-cert
}
2018-08-30 22:36:04,568:DEBUG:root:Requesting fresh nonce
2018-08-30 22:36:04,568:DEBUG:root:Sending HEAD request to https://acme-v01.api.letsencrypt.org/acme/reg/6531596.
2018-08-30 22:36:04,697:DEBUG:requests.packages.urllib3.connectionpool:“HEAD /acme/reg/6531596 HTTP/1.1” 405 0
2018-08-30 22:36:04,699:DEBUG:acme.client:Received response:
HTTP 405
Server: nginx
Content-Type: application/problem+json
Content-Length: 91
Allow: POST
Replay-Nonce: O57brsr0GjljDEEwzoCUWo_vrGFsXLFRvhSaMrRrwg0
Expires: Thu, 30 Aug 2018 22:36:05 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Thu, 30 Aug 2018 22:36:05 GMT
Connection: keep-alive

2018-08-30 22:36:04,699:DEBUG:acme.client:Storing nonce: O57brsr0GjljDEEwzoCUWo_vrGFsXLFRvhSaMrRrwg0
2018-08-30 22:36:04,701:DEBUG:acme.client:JWS payload:
{
“contact”: [
"mailto:andrew@andrewpometti.com"
],
“resource”: “reg”,
“agreement”: “https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf”,
“key”: {
“e”: “AQAB”,
“kty”: “RSA”,
“n”: “s0-JqjND5lzNzo6uonHRNKqWkFwdXZ5zojX90GJOWNyBQO224E8uHE-Hf-8XIT45de6ZljFopjN9LU3aZmWt0LHahF_qbJZOF-rWKbQ6q7nEP3-KSUKbLURDmU5fWdDakjjtajiu-jPIpNw6JACFOxF3WR5gV1ZfCAH63frL0y2vD9p2-dv0schYLuO7Q4t8xvJhqZkMQ-09tB0Y4whRzEvhtAWNpuNHCZPcWqQaOoE9ldlrR9W5z06dZoUMMJ2Cvsxj9ghfERvE_-h0Y4sypP8sbj8LUeElWCwc7GO1Ngo_kaq36cZXFkxcTDusW17_MZlPuqfeSvXogQpSc2fw-Q”
}
}
2018-08-30 22:36:04,714:DEBUG:root:Sending POST request to https://acme-v01.api.letsencrypt.org/acme/reg/6531596:
{
“header”: {
“alg”: “RS256”,
“jwk”: {
“e”: “AQAB”,
“kty”: “RSA”,
“n”: “s0-JqjND5lzNzo6uonHRNKqWkFwdXZ5zojX90GJOWNyBQO224E8uHE-Hf-8XIT45de6ZljFopjN9LU3aZmWt0LHahF_qbJZOF-rWKbQ6q7nEP3-KSUKbLURDmU5fWdDakjjtajiu-jPIpNw6JACFOxF3WR5gV1ZfCAH63frL0y2vD9p2-dv0schYLuO7Q4t8xvJhqZkMQ-09tB0Y4whRzEvhtAWNpuNHCZPcWqQaOoE9ldlrR9W5z06dZoUMMJ2Cvsxj9ghfERvE_-h0Y4sypP8sbj8LUeElWCwc7GO1Ngo_kaq36cZXFkxcTDusW17_MZlPuqfeSvXogQpSc2fw-Q”
}
},
“protected”: “eyJub25jZSI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EzsBcrIQnOgxxxH2IY0Dv8O5PrPWQllXc7puQPmVAHpbTL_oVGv5gKD-53JJzg1BuAj4eavj188IKMGElpd19lcPpWeIP9TYbb2eGuBXVd4U-xw8mtdw”
}
2018-08-30 22:36:04,928:DEBUG:requests.packages.urllib3.connectionpool:“POST /acme/reg/6531596 HTTP/1.1” 202 680
2018-08-30 22:36:04,929:DEBUG:acme.client:Received response:
HTTP 202
Server: nginx
Content-Type: application/json
Content-Length: 680
Boulder-Requester: 6531596
Link: https://acme-v01.api.letsencrypt.org/acme/new-authz;rel=“next”, https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf;rel=“terms-of-service”
Replay-Nonce: -bXjU5qaK88y65ubReX_11M0X7fH3Fd2rC5VYl1TRsM
Expires: Thu, 30 Aug 2018 22:36:05 GMT
Cache-Control: max-age=0, no-cache, no-store
Pragma: no-cache
Date: Thu, 30 Aug 2018 22:36:05 GMT
Connection: keep-alive

{
“id”: 6531596,
“key”: {
“kty”: “RSA”,
“n”: “s0-JqjND5lzNzo6uonHRNKqWkFwdXZ5zojX90GJOWNyBQO224E8uHE-Hf-8XIT45de6ZljFopjN9LU3aZmWt0LHahF_qbJZOF-rWKbQ6q7nEP3-KSUKbLURDmU5fWdDakjjtajiu-jPIpNw6JACFOxF3WR5gV1ZfCAH63frL0y2vD9p2-dv0schYLuO7Q4t8xvJhqZkMQ-09tB0Y4whRzEvhtAWNpuNHCZPcWqQaOoE9ldlrR9W5z06dZoUMMJ2Cvsxj9ghfERvE_-h0Y4sypP8sbj8LUeElWCwc7GO1Ngo_kaq36cZXFkxcTDusW17_MZlPuqfeSvXogQpSc2fw-Q”,
“e”: “AQAB”
},
“contact”: [
"mailto:andrew@andrewpometti.com"
],
“agreement”: “https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf”,
“initialIp”: “2601:185:380:2f14:a00:27ff:fe00:38c4”,
“createdAt”: “2016-11-24T15:18:47Z”,
“status”: “valid”
}
2018-08-30 22:36:04,930:DEBUG:acme.client:Storing nonce: -bXjU5qaK88y65ubReX_11M0X7fH3Fd2rC5VYl1TRsM
2018-08-30 22:36:04,932:DEBUG:certbot.main:Exiting abnormally:
Traceback (most recent call last):
File “/usr/bin/certbot”, line 11, in
load_entry_point(‘certbot==0.10.2’, ‘console_scripts’, ‘certbot’)()
File “/usr/lib/python2.7/dist-packages/certbot/main.py”, line 849, in main
return config.func(config, plugins)
File “/usr/lib/python2.7/dist-packages/certbot/main.py”, line 444, in register
body=acc.regr.body.update(contact=(‘mailto:’ + config.email,))))
File “/usr/lib/python2.7/dist-packages/acme/client.py”, line 138, in update_registration
raise errors.UnexpectedUpdate(regr)
UnexpectedUpdate: RegistrationResource(body=Registration(certificates=None, contact=(‘mailto:andrew@andrewpometti.com’,), authorizations=None, agreement=u’https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf’, key=JWKRSA(key=<ComparableRSAKey(<cryptography.hazmat.backends.openssl.rsa._RSAPublicKey object at 0x7f2471f16f90>)>)), uri=u’https://acme-v01.api.letsencrypt.org/acme/reg/6531596’, new_authzr_uri=u’https://acme-v01.api.letsencrypt.org/acme/new-authz’, terms_of_service=u’https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf’)

Is this mail address

andrew @ andrewpometti . com

your old or your new mail address? The response contains all informations an update response should contain, so it looks like the update was successful.

That’s the new address.

If it worked, why did it generate an error?

1 Like

Then I would ignore the error.

Good question, I don't know. But the response has all account informations, the date created, the initial ip. So it's a problem of your client software.

  1. random bug
  2. Perhaps there are updates.

In that case, I guess we’ll know if it worked or not in a few months when the certificates are set to expire again… If the email goes to the old address, I’ll include you on my new post.

Thanks for all your help.

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