Skip to content

Update certbot to v5 - #14

Draft
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-certbot
Draft

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/major-certbot

Conversation

@renovate

@renovate renovate Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
acme 3.3.0 → 5.10.0 age confidence
certbot 3.3.0 → 5.10.0 age confidence

Release Notes

certbot/certbot (acme)

v5.10.0: Certbot 5.10.0

Compare Source

Fixed
  • Fixes a race condition in the webroot plugin where, if the webroot could be modified by a less privileged user while Certbot ran, the ownership and mode of an unintended file could be changed instead of those of the challenge directory Certbot had just created.
  • Rejects invalid ARI suggested renewal windows whose end time is not after their start time.

v5.9.0: Certbot 5.9.0

Compare Source

Added
  • Added an OCI image source label to Docker images, allowing third-party tools such as Renovate to discover the source repository. (#​10808)
Fixed
  • Fixes a bug where certbot would sometimes incorrectly pass failed SANs as successfully renewed SANs to renewal hooks. (#​10780)
  • The account to deactivate is selected before Certbot asks for irreversible deactivation confirmation.

v5.8.0: Certbot 5.8.0

Compare Source

Changed
  • certbot and its acme library now require cryptography>=47.0.0. (#​10748)
Fixed
  • Fixed removed domains being omitted from the certificate update confirmation prompt. (#​10767)

v5.7.0: Certbot 5.7.0

Compare Source

Fixed
  • Fixed nginx configuration parsing when comments appear between tokens of a multi-line directive. (#​10598)

v5.6.0: Certbot 5.6.0

Compare Source

Changed
  • certbot now requires version 1.7+ of the library distro and certbot-dns-cloudflare requires 4.0+ of the Cloudflare Python library. (#​10587)
Fixed
  • The certbot-dns-ovh snap and docker image now properly delete any created TXT records after the challenge is completed by requiring dns-lexicon 3.25.1 which contains the fix. (#​10492)
  • Our Docker images have been updated to use Python 3.14 and Alpine Linux 3.23. (#​10619)

v5.5.0: Certbot 5.5.0

Compare Source

Changed
  • Moved nearly all code for the certbot-nginx and certbot-apache plugins into private modules in the certbot package which now offers "apache" and "nginx" extras. Users should notice no major changes. certbot-apache and certbot-nginx will continue to exist as simple packages that depend on certbot and also help register the plugin with certbot so it knows the functionality is available. Unit tests for these plugins are now also part of the certbot package. (#​10484)
  • The certbot.ocsp module has been deprecated and will be removed in the next major release. This is not a change to Certbot's OCSP functionality. The code is just being removed from Certbot's public API. (#​10584)

v5.4.0: Certbot 5.4.0

Compare Source

Added
  • The webroot plugin now supports IP address issuance. (#​10543)
Changed
  • certbot-nginx now requires pyparsing>=3.0.0. (#​10560)

v5.3.1: Certbot 5.3.1

Compare Source

Fixed
  • We rebuilt our snaps to include updated versions our dependencies. (#​10569)

v5.3.0: Certbot 5.3.0

Compare Source

Added
  • A new command line flag, --ip-address, has been added. This requests certificates with IP address SANs when using the standalone or manual plugin. Note that for Let's Encrypt's implementation of IP address certificates, you'll also need to pass --preferred-profile shortlived. (#​10465)
Changed
  • Deploy directory hooks are now also run when using certbot certonly or certbot run to get a new cert. This change was made for pre and post directory hooks in our 3.2.0 release so this change unifies Certbot's behavior here. (#​9978)
  • A few largely unused functions/types have been deprecated in our effort to remove our pyOpenSSL dependency:
    * Deprecated: certbot.crypto_util.get_sans_from_cert
    * Deprecated: certbot.crypto_util.get_names_from_cert
    * Deprecated: certbot.crypto_util.get_names_from_req
    * Deprecated: certbot.crypto_util.import_csr_file (and replaced by certbot.crypto_util.read_csr_file)
    * Deprecated: acme.crypto_util.Format (#​10433)
  • achallenges.KeyAuthorizationAnnotatedChallenge, achallenges.DNS, and achallenges.Other have a new field identifier, of type acme.messages.Identifier. This should be used in place of the domain field, which is now deprecated both as an attribute and during object creation. (#​10491)
  • Authenticator.get_chall_pref's argument has been renamed from domain to identifier, and can now receive string-formatted IP addresses in addition to domain names. (#​10495)
  • san.DNSName now calls util.enforce_domain_sanity to reduce code duplication (#​10519)
Fixed
  • Removed the outdated email address from our Python packages' metadata. (#​10533)
  • The HTTP01.uri method will now properly enclose IPv6 addresses in square brackets. (#​10548)

v5.2.2: Certbot 5.2.2

Compare Source

Fixed
  • Fixed a regression that caused certbot to crash if multiple --webroot-path
    values were set on the command line.
    (#​10509)

v5.2.1: Certbot 5.2.1

Compare Source

Added
  • Support for Python 3.14 was added.
    (#​10477)
Changed
  • While nothing significant should have changed from the user's perspective,
    we've been doing a lot of internal refactoring in preparation for soon adding
    support for IP address certificates to Certbot.
    (#​10468,
    #​10478)
Fixed
  • Removed vhost_combined and vhost_common log formats from included Apache
    configuration file. (#​9769)
  • Due to a mistake on our end playing with GitHub's new immutable
    releases

    feature that prevented our CI from uploading additional release assets,
    Certbot 5.2.0 was not and will not be uploaded to most platforms. Instead,
    that version number will be skipped and we'll go straight to 5.2.1.
    (#​10501)

v5.1.0: Certbot 5.1.0

Compare Source

Changed
  • certbot-nginx no longer creates and uses self-signed certificates as an
    intermediate step when installing certificates. The certificates the user
    requested Certbot install are now always used instead.
    (#​10465)
  • The function acme.crypto_util.make_self_signed_cert was deprecated and will
    be removed in a future release.
    (#​10466)
Fixed
  • Fixed a bug in certbot-nginx that'd leave nginx configured with self-signed
    certificates if a user ran certbot enhance and they didn't have matching
    SSL server blocks. certbot enhance now requires the user to have a matching
    SSL server block to enable HSTS or OCSP stapling enhancements.
    (#​10455)

v5.0.0: Certbot 5.0.0

Compare Source

Added
  • Certbot now stores the Retry-After value given by ACME Renewal Info (ARI) so
    the value can be respected across multiple Certbot runs.
    (#​10377)
  • Added uv as a test dependency, and switched most pip invocations to uv pip for faster installs.
    (#​10428)
Changed
  • Removed final instances of pyopenssl x509 and PKey objects

    • Removed acme.crypto_util.SSLSocket
    • Removed acme.crypto_util.probe_sni

    (#​10079,
    #​10381)

  • Removed a number of deprecated classes/interfaces

    • Removed acme.challenges.TLSALPN01Response
    • Removed acme.challenges.TLSALPN01
    • Removed acme.standalone.TLSServer
    • Removed acme.standalone.TLSALPN01Server

    (#​10274)

  • certbot.ocsp.RevocationChecker.init no longer accepts the parameter
    enforce_openssl_binary_usage and always uses the cryptography Python
    library for OCSP checking.
    (#​10291)

  • Python 3.9 support was removed.
    (#​10389)

  • Migrated most functionality from certbot/setup.py to
    certbot/pyproject.toml
    (#​10402)

  • Migrated most functionality from setup.py to pyproject.toml for acme,
    certbot-apache, and certbot-nginx.
    (#​10417)

  • Migrated most functionality from setup.py to pyproject.toml for certbot
    dns plugins. (#​10425)

  • Updated apache TLS configuration options based on changes to Mozilla's
    intermediate configuration recommendations.

    • Added DHE-RSA-CHACHA20-POLY1305 to SSLCipherSuite list for better
      compliance
    • Configured curves using SSLOpenSSLConfCmd so FFDH won't be used with
      OpenSSL 3.0

    (#​10443)

Fixed
  • certbot-apache no longer prints a warning claiming the version of OpenSSL
    used by Apache is too old when we were unable determine the OpenSSL version.
    (#​10444)
  • certbot-nginx no longer uses socket.gethostname when generating self-signed
    certificates for use as a temporary step of installing certificates as it
    would sometimes result in strings that are too long to be used in the common
    name of a certificate. The static domain "temp-certbot-nginx.invalid" is now
    used instead. (#​10447)

v4.2.0: Certbot 4.2.0

Compare Source

Added
  • Added --eab-hmac-alg parameter to support custom HMAC algorithm for
    External Account Binding.
    (#​10281)
Changed
  • Catches and ignores errors during the directory fetch for ARI checking so
    that these errors do not hinder the actual certificate issuance.
    (#​10342)
  • Removed the dependency on pytz.
    (#​10350)
  • Deprecated acme.crypto_util.probe_sni
    (#​10386)
  • Support for Python 3.9 was deprecated and will be removed in our next planned
    release. (#​10390)
Fixed
  • The Certbot snap no longer sets the environment variable PYTHONPATH stopping
    it from picking up Python files in the current directory and polluting the
    environment for Certbot hooks written in Python.
    (#​10176,
    #​10257)
  • Previously, we claimed to set FAILED_DOMAINS and RENEWED_DOMAINS env
    variables for use by post-hooks when certificate renewals fail, but we were
    not actually setting them. Now, we are.
    (#​10259)
  • Certbot now always uses the server value from the renewal configuration file
    for ARI checks instead of the server value from the current invocation of
    Certbot. This helps prevent ARI requests from going to the wrong server if
    the user changes CAs.
    (#​10339)

v4.1.1: Certbot 4.1.1

Compare Source

Fixed
  • When a CA fails to issue a certificate after finalization, print the ACME error from the order
  • No longer checks ARI during certbot --dry-run, because --dry-run uses staging when used
    with let's encrypt but the cert was issued against the default server. This would emit
    a scary warning, even though the cert would renew successfully.
  • Contacting the CA to check ARI is now skipped for certificate lineages that
    have autorenew set to False.

More details about these changes can be found on our GitHub repo.

v4.1.0: Certbot 4.1.0

Compare Source

Added
  • ACME Renewal Info (ARI) support. https://datatracker.ietf.org/doc/draft-ietf-acme-ari/
    certbot renew will automatically check ARI when using an ACME server that supports it,
    and may renew early based on the ARI information. For Let's Encrypt certificates this
    will typically cause renewal at around 2/3rds of the certificate's lifetime, even if
    the renew_before_expiry field of a lineage renewal config is set a later date.
Changed
  • Switched to src-layout from flat-layout to accommodate PEP 517 pip editable installs
  • acme.client.ClientNetwork now makes the "key" parameter optional.
  • Deprecated acme.challenges.TLSALPN01Response
  • Deprecated acme.challenges.TLSALPN01
  • Deprecated parameter alpn_protocols from acme.crypto_util.probe_sni
  • Deprecated acme.crypto_util.SSLSocket
  • Deprecated acme.standalone.TLSServer
  • Deprecated acme.standalone.TLSALPN01Server
  • Deprecated parameter enforce_openssl_binary_usage from certbot.ocsp.RevocationChecker.
  • Dropped support for Python 3.9.0 and 3.9.1 for compatibility with newer
    versions of the cryptography Python package. Python 3.9.2+ is still
    supported.
Fixed
  • Order finalization now catches orderNotReady response, polls until order status is
    ready, and resubmits finalization request before polling for valid to download
    certificate. This conforms to RFC 8555 more accurately and avoids race conditions where
    all authorizations are fulfilled but order has not yet transitioned to ready state on
    the server when the finalization request is sent. It also respects retry-after when
    polling for finalization readiness.
  • The --preferred-profile and --required-profile flags now have their values stored in
    the renewal configuration so the same setting will be used on renewal.
  • Fixed an unintended change introduced in 4.0.0 where renew_before_expiry could not be
    shorter than certbot's default renewal time. If the server does not provide an ARI
    response, renew_before_expiry will continue to override certbot's default. However,
    an early ARI response will override a later renew_before_expiry time, to account for
    notifications in case of certificate revocation, especially with the impending deprecation
    of OCSP (https://letsencrypt.org/2024/12/05/ending-ocsp/). To force a later date, users
    can replace certbot's default cron job and/or systemd timer with one of their own timing.

More details about these changes can be found on our GitHub repo.

v4.0.0: Certbot 4.0.0

Compare Source

Added
Changed
  • Certificates now renew with 1/3rd of lifetime left (or 1/2 of lifetime left,
    if the lifetime is shorter than 10 days). This is a change from a hardcoded
    renewal at 30 days before expiration. The config field renew_before_expiry
    still overrides this default.

  • removed acme.crypto_util._pyopenssl_cert_or_req_all_names

  • removed acme.crypto_util._pyopenssl_cert_or_req_san

  • removed acme.crypto_util.dump_pyopenssl_chain

  • removed acme.crypto_util.gen_ss_cert

  • removed certbot.crypto_util.dump_pyopenssl_chain

  • removed certbot.crypto_util.pyopenssl_load_certificate

Fixed
  • Moved RewriteEngine on directive added during apache http01 authentication
    to the end of the virtual host, so that it overwrites any RewriteEngine off
    directives that already exist and allows redirection to the challenge URL.

More details about these changes can be found on our GitHub repo.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
renovate Bot force-pushed the renovate/major-certbot branch 2 times, most recently from d35f307 to b343150 Compare November 11, 2026 04:00
@renovate
renovate Bot force-pushed the renovate/major-certbot branch from b343150 to 4e1bd5c Compare November 16, 2026 12:09

@sairon sairon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The azure plugin and #12 are blocker for this bump: terricain/certbot-dns-azure#65

There's eventually this (currently) maintained fork we could move to: https://github.com/cloudchristoph/certbot-dns-azure-modern

@home-assistant

Copy link
Copy Markdown

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@home-assistant
home-assistant Bot marked this pull request as draft November 24, 2026 14:33

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant