From ff281d48a8db6052d2ae7426553bcd1609ca410f Mon Sep 17 00:00:00 2001 From: Louis Opter Date: Fri, 13 Feb 2026 15:55:35 -0800 Subject: [PATCH] Improve the error message when `certbot renew` is used with the `-d` option (#10225) Co-authored-by: Brad Warren --- certbot/src/certbot/_internal/renewal.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/certbot/src/certbot/_internal/renewal.py b/certbot/src/certbot/_internal/renewal.py index 5a74d84e1..bf7c79c63 100644 --- a/certbot/src/certbot/_internal/renewal.py +++ b/certbot/src/certbot/_internal/renewal.py @@ -641,9 +641,10 @@ def handle_renewal_request(config: configuration.NamespaceConfig) -> None: raise errors.Error("Currently, the renew verb is capable of either " "renewing all installed certificates that are due " "to be renewed or renewing a single certificate specified " - "by its name. If you would like to renew specific " - "certificates by their identifiers, use the certonly command " - "instead. The renew verb may provide other options " + "by its name using the --cert-name option (-d, --domain, and " + "--ip-address are not valid options for the renew subcommand). If you " + "would like to renew specific certificates by their identifiers, use " + "the certonly command instead. The renew verb may provide other options " "for selecting certificates to renew in the future.") if config.certname: