Skip to main content

lets-debug-helper

CI Coverage Status PyPI Python License: MIT

A small command-line wrapper around the Let's Debug public API. Hand it a domain name and it submits a diagnostic test, polls until the result is ready, and prints any problems found in a readable, color-coded format. Useful when you're trying to figure out why Let's Encrypt won't issue a certificate for a domain you control.

Install

pip install lets-debug-helper

Requires Python 3.13+.

Usage

lets-debug example.com

Wildcards are supported:

lets-debug "*.example.com"

For full options:

lets-debug --help

Example output

When the domain has issues:

Checking Domain: example.com
     Testing ID: 2916375
            URL: https://letsdebug.net/example.com/2916375

Waiting for test to complete....

Warning Type: IssueFromLetsEncrypt
 Explanation: A test authorization for example.com to the Let's Encrypt staging
              service has revealed issues that may prevent any certificate for
              this domain being issued.
     Details: Error creating new order :: Cannot issue for "example.com": ...
    Severity: Error

When everything checks out:

Checking Domain: yourdomain.com
     Testing ID: 2916380
            URL: https://letsdebug.net/yourdomain.com/2916380

Waiting for test to complete....

All OK!

No issues were found with yourdomain.com. If you are having problems with
creating an SSL certificate, please visit the Let's Encrypt Community forums
and post a question there.
https://community.letsencrypt.org/

What it checks

The Let's Debug service runs a battery of pre-flight checks that frequently catch the real reasons certificate issuance fails. A non-exhaustive list:

  • DNS resolution and authoritative-NS sanity
  • CAA records that disallow Let's Encrypt
  • Public-suffix-list / domain blocklist hits
  • HTTP-01 reachability (port 80 open, no redirect loops, correct content type)
  • TXT record state for DNS-01 (when applicable)
  • Cloudflare / CDN-fronted SSL configuration warnings
  • IPv4/IPv6 reachability mismatches
  • Rate-limit-state hints from Let's Encrypt's staging environment

For the full list and underlying logic, see the Let's Debug source.

Exit codes

Code Meaning
0 Test completed successfully (regardless of whether problems were reported)
1 API error, JSON decode error, or test did not complete within 60 seconds

Contributing

See CONTRIBUTING.md for dev setup, the make targets, and the release process.

License

MIT.

Acknowledgements

This tool is just a thin client. All the diagnostic work is done by the Let's Debug project — please consider supporting them.

Release files for lets-debug-helper 1.6.10

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lets-debug-helper 1.6.10
File Size Uploaded
lets_debug_helper-1.6.10.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lets-debug-helper 1.6.10
File Interpreter ABI Platform
lets_debug_helper-1.6.10-py3-none-any.whl Python 3 none any Details

Total release size: 17.1 kB

Release files / lets_debug_helper-1.6.10.tar.gz

Download URL lets_debug_helper-1.6.10.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
50254751fa887aac46c3140b6cbc48c3caacfab62ad40285de575cabee4bc61f
BLAKE2b-256 checksum
How to use checksums
2f606a6f83b5bfb21e05a2de7a745cfdc2e09a946a6bd8e934211bf3a7a902db
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.14 Linux/6.17.0-1018-azure

Release files / lets_debug_helper-1.6.10-py3-none-any.whl

Download URL lets_debug_helper-1.6.10-py3-none-any.whl
Size 9.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d0ee21703549d8fdbcea52d27e7479e2a3d6e8404a1b267f11799d9b830a285c
BLAKE2b-256 checksum
How to use checksums
0f97f4782a626c7b017293e01b95447dac15f08676c73ef215cbdc01fee24c7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.13.14 Linux/6.17.0-1018-azure

Release history Release notifications | RSS feed

1.6.11

2 release files

This release

1.6.10 This release

2 release files

1.6.9

2 release files

1.6.8

2 release files

1.6.7

2 release files

1.6.6

2 release files

1.6.5

2 release files

1.6.4

2 release files

1.6.3

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.23

2 release files

1.5.20

2 release files

1.5.16

2 release files

1.5.14

2 release files

1.5.13

2 release files

1.5.12

2 release files

1.5.11

2 release files

1.5.10

2 release files

1.5.9

2 release files

1.5.8

2 release files

1.5.7

2 release files

1.5.6

2 release files

1.5.4

2 release files

1.5.3

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.0.9

2 release files

1.0.8

2 release files

1.0.7

2 release files

1.0.6

1 release file

1.0.5

1 release file

1.0.4

1 release file

1.0.3

1 release file

1.0.2

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page