Note
This filter plugin is part of the community.crypto collection (version 2.26.5).
You might already have this collection installed if you are using the ansible package. 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 community.crypto. You need further requirements to be able to use this filter plugin, see Requirements for details.
To use it in a playbook, specify: community.crypto.x509_crl_info.
New in community.crypto 2.10.0
The below requirements are needed on the local controller node that executes this filter.
name_encoding is set to another value than ignore, the idna Python library needs to be installed.This describes the input of the filter, the value before | community.crypto.x509_crl_info.
Parameter | Comments |
|---|---|
Input string / required | The content of the X.509 CRL in PEM format. |
This describes keyword parameters of the filter. These are the values key1=value1, key2=value2 and so on in the following example: input | community.crypto.x509_crl_info(key1=value1, key2=value2, ...)
Parameter | Comments |
|---|---|
list_revoked_certificates boolean added in community.crypto 1.7.0 | If set to This is useful when retrieving information on large CRL files. Enumerating all revoked certificates can take some time, including serializing the result as JSON, sending it to the Ansible controller, and decoding it again. Choices:
|
name_encoding string | How to encode names (DNS names, URIs, email addresses) in return values.
Note that Choices:
|
See also
Retrieve information on Certificate Revocation Lists (CRLs).
Convert an integer to a colon-separated list of hex numbers.
---
- name: Show the Organization Name of the CRL's subject
ansible.builtin.debug:
msg: >-
{{
(
lookup('ansible.builtin.file', '/path/to/cert.pem')
| community.crypto.x509_crl_info
).issuer.organizationName
}}
Key | Description |
|---|---|
Return value dictionary | Information on the CRL. Returned: success |
|
digest string |
The signature algorithm used to sign the CRL. Returned: success Sample: |
|
format string |
Whether the CRL is in PEM format ( Returned: success Can only return:
Sample: |
|
issuer dictionary |
The CRL’s issuer. Note that for repeated values, only the last one will be returned. See Returned: success Sample: |
|
issuer_ordered list / elements=list |
The CRL’s issuer as an ordered list of tuples. Returned: success Sample: |
|
last_update string |
The point in time from which this CRL can be trusted as ASN.1 TIME. Returned: success Sample: |
|
next_update string |
The point in time from which a new CRL will be issued and the client has to check for it as ASN.1 TIME. Returned: success Sample: |
|
revoked_certificates list / elements=dictionary |
List of certificates to be revoked. Returned: success if |
|
invalidity_date string |
The point in time it was known/suspected that the private key was compromised or that the certificate otherwise became invalid as ASN.1 TIME. Returned: success Sample: |
|
invalidity_date_critical boolean |
Whether the invalidity date extension is critical. Returned: success Sample: |
|
issuer list / elements=string |
The certificate’s issuer. See Returned: success Sample: |
|
issuer_critical boolean |
Whether the certificate issuer extension is critical. Returned: success Sample: |
|
reason string |
The value for the revocation reason extension. Returned: success Can only return:
Sample: |
|
reason_critical boolean |
Whether the revocation reason extension is critical. Returned: success Sample: |
|
revocation_date string |
The point in time the certificate was revoked as ASN.1 TIME. Returned: success Sample: |
|
serial_number integer |
Serial number of the certificate. This return value is an integer. If you need the serial numbers as a colon-separated hex string, such as Returned: success Sample: |
© 2012–2018 Michael DeHaan
© 2018–2025 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/latest/collections/community/crypto/x509_crl_info_filter.html