mirror of
https://github.com/certbot/certbot.git
synced 2026-08-01 19:02:52 +02:00
Revocation reason (#4987)
* fix revocation reason help text * add it to the docs * move and expand revoke reason example
This commit is contained in:
+3
-2
@@ -1156,9 +1156,10 @@ def _create_subparsers(helpful):
|
|||||||
" Currently --csr only works with the 'certonly' subcommand.")
|
" Currently --csr only works with the 'certonly' subcommand.")
|
||||||
helpful.add("revoke",
|
helpful.add("revoke",
|
||||||
"--reason", dest="reason",
|
"--reason", dest="reason",
|
||||||
choices=CaseInsensitiveList(constants.REVOCATION_REASONS.keys()),
|
choices=CaseInsensitiveList(sorted(constants.REVOCATION_REASONS,
|
||||||
|
key=constants.REVOCATION_REASONS.get)),
|
||||||
action=_EncodeReasonAction, default=0,
|
action=_EncodeReasonAction, default=0,
|
||||||
help="Specify reason for revoking certificate.")
|
help="Specify reason for revoking certificate. (default: unspecified)")
|
||||||
helpful.add("rollback",
|
helpful.add("rollback",
|
||||||
"--checkpoints", type=int, metavar="N",
|
"--checkpoints", type=int, metavar="N",
|
||||||
default=flag_default("rollback_checkpoints"),
|
default=flag_default("rollback_checkpoints"),
|
||||||
|
|||||||
@@ -383,6 +383,12 @@ use the ``revoke`` command to do so. Note that the ``revoke`` command takes the
|
|||||||
|
|
||||||
certbot revoke --cert-path /etc/letsencrypt/live/CERTNAME/cert.pem
|
certbot revoke --cert-path /etc/letsencrypt/live/CERTNAME/cert.pem
|
||||||
|
|
||||||
|
You can also specify the reason for revoking your certificate by using the ``reason`` flag.
|
||||||
|
Reasons include ``unspecified`` which is the default, as well as ``keycompromise``,
|
||||||
|
``affiliationchanged``, ``superseded``, and ``cessationofoperation``::
|
||||||
|
|
||||||
|
certbot revoke --cert-path /etc/letsencrypt/live/CERTNAME/cert.pem --reason keycompromise
|
||||||
|
|
||||||
Additionally, if a certificate
|
Additionally, if a certificate
|
||||||
is a test certificate obtained via the ``--staging`` or ``--test-cert`` flag, that flag must be passed to the
|
is a test certificate obtained via the ``--staging`` or ``--test-cert`` flag, that flag must be passed to the
|
||||||
``revoke`` subcommand.
|
``revoke`` subcommand.
|
||||||
|
|||||||
Reference in New Issue
Block a user