Skip to content

Change in Let's encrypt response broke client if contact is set #299

@jannic

Description

@jannic

As mentioned here, Let's Encrypt no longer includes contact information in its responses: https://community.letsencrypt.org/t/did-you-change-the-response-of-new-account/238188

That breaks acme-tiny if contact information is requested:

Traceback (most recent call last):
  File "/home/user/bin/acme_tiny.py", line 199, in <module>
    main(sys.argv[1:])
  File "/home/user/bin/acme_tiny.py", line 195, in main
    signed_crt = get_crt(args.account_key, args.csr, args.acme_dir, log=LOGGER, CA=args.ca, disable_check=args.disable_check, directory_url=args.directory_url, contact=args.contact, check_port=args.check_port)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/bin/acme_tiny.py", line 115, in get_crt
    log.info("Updated contact details:\n{0}".format("\n".join(account['contact'])))
                                                              ~~~~~~~^^^^^^^^^^^
KeyError: 'contact'
Failed retrieving cert

Workaround: Don't use the --contact command line option.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions