Certbot revoke command not recognized

I am having issues with certbot-auto. My server got hacked earlier so I’m trying to revoke the certs for a domain (pvb.initd.nl) but here’s what I’m getting:
Command: ./certbot-auto revoke --cert-path /path/to/existing/pem
Command: ./certbot-auto revoke -d pvb.initd.nl --cert-path /path/to/existing/pem

Output every time:

usage:
certbot-auto [SUBCOMMAND] [options] [-d DOMAIN] [-d DOMAIN] …

Certbot can obtain and install HTTPS/TLS/SSL certificates. By default,
it will attempt to use a webserver both for obtaining and installing the
cert.

Does anyone have any idea? It’s the most up to date version.

try without the certbot-auto

i.e certbot revoke --cert-path path

Andrei

Revoking certificates

If your account key has been compromised or you otherwise need to revoke a certificate, use the revoke command to do so. Note that the revoke command takes the certificate path (ending in cert.pem), not a certificate name or domain. Example:

certbot revoke --cert-path /etc/letsencrypt/live/CERTNAME/cert.pem

Additionally, if a certificate is a test cert obtained via the --staging or --test-cert flag, that flag must be passed to the revoke subcommand. Once a certificate is revoked (or for other cert management tasks), all of a certificate’s relevant files can be removed from the system with the delete subcommand:

certbot delete --cert-name example.com

Note

If you don’t use delete to remove the certificate completely, it will be renewed automatically at the next renewal event.

If you can run certbot-auto, it’s probably the right command for you (whether to use certbot or certbot-auto depends only on how you installed Certbot; they don’t have different functionality or options).

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.