felixfontein.acme.revoke_old_certificates role – Revoke old certificates
Note
This role is part of the felixfontein.acme collection (version 0.8.1).
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it use: ansible-galaxy collection install felixfontein.acme
.
To use it in a playbook, specify: felixfontein.acme.revoke_old_certificates
.
Entry point main
– Revoke old certificates
New in felixfontein.acme 0.1.0
Synopsis
This is a role which can use any CA supporting the ACME protocol, such as Let’s Encrypt, Buypass or ZeroSSL, to revoke issued TLS/SSL certificates for your server.
This role assumes that the felixfontein.acme.acme_certificate role has been used with
acme_certificate_keys_old_store=true
. The role then copies the old certificate intokeys/old/
(or the path configured byacme_certificate_keys_old_path
) before renewal. This role iterates over all certificates (respectively their private keys) in this directory and revokes them all with the given reason.This role supports both plaintext private keys and sops-encrypted private keys (see
acme_certificate_use_sops_for_key
option of the felixfontein.acme.acme_certificate role.Make sure that you first replace all usages of the old certificates by the new ones before revokation!
Parameters
Parameter |
Comments |
---|---|
Path to the private ACME account key. Either this or |
|
Content of the private ACME account key. Either this or |
|
Instead of determining the account URI from the account key, assumes the given account URI. |
|
The ACME directory to use. Default is Default: |
|
The ACME directory’s version. Default: |
|
The directory where old keys and certificates were copied to by the felixfontein.acme.acme_certificate role. Default: |
|
Which reason to use for revocation. The default value is Another sensible value is See the Default: |
|
If set to This is needed for ACME providers which do not support revocation by private certificate key, like BuyPass. Choices:
|