PARALLAX

x509_certificate_convert

Manage cryptographic files natively on the target

Collection: community.crypto

Full Name: community.crypto.x509_certificate_convert

Synopsis

Manage cryptographic files natively on the target

Parameters

NameTypeRequiredDefaultDescription
moderawNumeric or symbolic destination mode
ownerstringDestination owner name or numeric UID
groupstringDestination group name or numeric GID
seuserstringSELinux user or _default
serolestringSELinux role or _default
setypestringSELinux type or _default
selevelstringSELinux level or _default
attributesstringWritable Linux file attributes
unsafe_writesboolfalseAllow non-atomic writes when atomic replacement is unavailable
backupboolfalseSave existing content before replacement or deletion
src_pathstringInput file
src_contentstringInput content
src_content_base64boolfalseDecode base64 input content
formatstringyesDestination encoding: pem or der
strictboolfalseValidate PEM labels, object count and line lengths
dest_pathstringyesDestination file
verify_cert_parsableboolfalseValidate the ASN.1 certificate structure

Example

yaml
- name: Convert a certificate to DER
  community.crypto.x509_certificate_convert:
    src_path: /etc/ssl/certificate.pem
    dest_path: /etc/ssl/certificate.der
    format: der
Search
    ↑ ↓ move↵ openesc close