Skip to main content

ACME HTTP Connector · Certbot adapter

Publish HTTP-01 challenges and deploy your Certbot certificates through an HTTP API.

PyPI Python License

Documentation · Source code · Issues · Independent core

What it does

certbot-httpreq adds two plugins to Certbot. Together they connect certificate issuance and renewal to your existing HTTP services.

Plugin Role
certbot-httpreq:auth Publish and clean up HTTP-01 challenges through your API
certbot-httpreq:installer Send the certificate, private key and chain to your deployment API

The project is now called ACME HTTP Connector. The package name, plugin names and configuration options are preserved for existing Certbot installations.

Installation

Requires Python 3.10+ and Certbot 5.x. Install in the same Python environment as Certbot; a separate pip environment does not extend a snap installation.

python -m pip install certbot-httpreq
certbot plugins

The independent acme-http-connector core is installed automatically. Adapter 0.0.25 uses core 0.2.x.

Using Dehydrated? Install only acme-http-connector and use its acme-http-dehydrated HTTP-01 hook; Certbot is not required. See the Dehydrated guide.

Quick start

1. Configure your endpoints

Save the following as /etc/letsencrypt/certbot-httpreq.yml, replacing the example URLs with your own services:

perform:
  uri: https://api.example.com
  path: /challenges
  method: PUT
  format: json
  param_validation: value

cleanup:
  uri: https://api.example.com
  path: /challenges
  method: DELETE

deploy:
  uri: https://api.example.com
  path: /certificates
  method: POST
  format: json

TLS verification is enabled and the socket timeout is 30 seconds by default. Each section can override headers, timeout and verify independently.

2. Request a certificate

certbot run \
  --agree-tos --text --email admin@example.com \
  -a certbot-httpreq:auth \
  -i certbot-httpreq:installer \
  -d example.com

Your API must publish the challenge at http://example.com/.well-known/acme-challenge/<token>. The adapter also verifies it against the host in perform.uri and its explicit port, or Certbot's HTTP-01 port. That host must serve the challenge too.

3. Renew

certbot renew

Certbot invokes the configured plugins for challenge handling and certificate deployment. Deployment sends the first certificate name as domain and includes the complete certificate, including its additional names.

Use certbot renew --dry-run with a test API first: challenge publication and cleanup still make real HTTP requests.

Migration to Certbot 5

Adapter 0.0.25 requires Certbot and ACME 5.x with Sonicprobe 0.3.66 or newer. Upgrade Certbot and the adapter together in their existing Python environment; Certbot 2.x–4.x are no longer supported. Plugin names and configuration stay the same. Verify renewal against a staging CA and a test deployment API before production.

Configuration

Need Setting
Custom config file --certbot-httpreq:auth-config and --certbot-httpreq:installer-config
API authentication headers in each phase
Challenge path as a query parameter param_challenge
Named key authorization field param_validation
Custom deployment field names body_params under deploy
Custom TLS trust store CA bundle path in verify
Environment overrides CBT_HTTPREQ_<PHASE>_<OPTION>

See the full configuration reference and complete example file. Use HTTPS for remote deployment and protect API credentials: certificate payloads include the private key.

Compatibility

Existing commands, plugin names, YAML settings and environment variables continue to work. Since version 0.0.21, the shared HTTP transport lives in the independent core package. Certbot handles ACME issuance; the connector handles your HTTP APIs.

Project

Report an issue · Release history · Roadmap

Copyright © 2019–2026 Adrien Delle Cave. Licensed under GPL-3.0-or-later.

HTTP redirects are refused for publish, cleanup and deployment. Configure the final API URL directly; redirects do not trigger another request or count as success.

Metadata

Release files for certbot-httpreq 0.0.25

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

Source distribution (sdist)

Source distribution for certbot-httpreq 0.0.25
File Size Uploaded Provenance Actions
certbot_httpreq-0.0.25.tar.gz 25.9 kB With provenance Details for certbot_httpreq-0.0.25.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for certbot-httpreq 0.0.25
File Interpreter ABI Platform Actions
certbot_httpreq-0.0.25-py3-none-any.whl Python 3 none any Details for certbot_httpreq-0.0.25-py3-none-any.whl

Total release size: 46.0 kB

Release files / certbot_httpreq-0.0.25.tar.gz

Download URL certbot_httpreq-0.0.25.tar.gz
Size 25.9 kB
Tags Source
SHA-256 checksum
How to use checksums
e4766f5f35c75fe1cfee524f04dc519d641172f003c4dc2d5ccd2e857cddd460
BLAKE2b-256 checksum
How to use checksums
5a1bf9bef8203c2b8927d5582e468bbb1c420c32e6afeaba5c4bbefcdf8be6e6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / certbot_httpreq-0.0.25-py3-none-any.whl

Download URL certbot_httpreq-0.0.25-py3-none-any.whl
Size 20.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
50f84466acba391e9e17a5ab8b42331cce5d6b86dc997fb793ab3552d6485707
BLAKE2b-256 checksum
How to use checksums
2091a106d1a617680c457ce4b5d878ccb0eb35e8f3d7f0afb023830a80b88fdd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for certbot-httpreq 0.0.25

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for certbot_httpreq-0.0.25.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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