mkdir ~/t6
docker cp traefik-traefik-1:/data/acme-production.json ~/t6/
# your container and or file may be named differently.
podman run --rm -it -v ~/t6:/stuff:Z --workdir /stuff \
docker.io/ldez/traefik-certs-dumper:latest \
file --version v2 --source acme-production.json
DOMAIN=example.com
[email protected]
podman run --rm -it -v ~/t6:/stuff:Z --workdir /stuff \
docker.io/certbot/certbot:latest \
revoke \
-m "$EMAIL" \
--cert-path "dump/certs/$DOMAIN.crt" \
--key-path "dump/private/$DOMAIN.key"
You may get this error:
No match found for cert-path /stuff/dump/certs/example.com.crt!
But if you try the command agagin you may get this error:
An unexpected error occurred:
unable to revoke :: unable to re-revoke serial "XXXXXX" which is already revoked for keyCompromise
So this means the prior revocation did succeed.
Check your service in a web browser, and you should immediately see the revocation error.