- python/configs/: 7 purpose-built config files, one per error class: all-ok.txt, dns-failure.txt, connection-refused.txt, timeout.txt, tls-errors.txt (badssl.com), http-errors.txt (real 404 paths on stable hosts), mixed.txt (one of each, no timeout) - python/configs/usage.md: runnable sh commands + expected output per config, plus quick-sweep and full-sweep loops; commands written for running from the python/ directory - docs/custom-usage-examples.md: example 11 added (all failure classes at once) - docs/usage/py-simple.md: added pointer to python/configs/ and corrected limitation note (4xx/5xx are FAIL, not OK) Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
22 lines
796 B
Plaintext
22 lines
796 B
Plaintext
# TLS certificate errors — badssl.com provides endpoints with intentionally
|
|
# broken certificates. Python's ssl module rejects them by default.
|
|
#
|
|
# Note: badssl.com may intermittently reset the connection instead of
|
|
# completing the TLS handshake. The error message will then read
|
|
# "[Errno 54] Connection reset by peer" rather than CERTIFICATE_VERIFY_FAILED,
|
|
# but simple.py still correctly reports FAIL in either case.
|
|
#
|
|
# Requires internet access.
|
|
#
|
|
# Run: python3.14 python/simple.py python/configs/tls-errors.txt
|
|
# Expected exit code: 1
|
|
|
|
# Certificate has expired
|
|
https://expired.badssl.com/
|
|
|
|
# Certificate is self-signed (not trusted by the system CA store)
|
|
https://self-signed.badssl.com/
|
|
|
|
# Certificate chain is incomplete (intermediate CA missing)
|
|
https://incomplete-chain.badssl.com/
|