PARALLAX

openssl_csr_pipe

Generate or update a certificate signing request in memory

Collection: community.crypto

Full Name: community.crypto.openssl_csr_pipe

Synopsis

Generate or update a certificate signing request in memory

Parameters

NameTypeRequiredDefaultDescription
digeststringsha256Pinned executable CSR argument (str source line 804)
privatekey_pathstringPinned executable CSR argument (path source line 805)
privatekey_contentstringPinned executable CSR argument (str source line 806)
privatekey_passphrasestringPinned executable CSR argument (str source line 807)
versionint1Pinned executable CSR argument (int source line 808)
subjectdictPinned executable CSR argument (dict source line 809)
subject_orderedlistPinned executable CSR argument (list source line 810)
country_namestringPinned executable CSR argument (str source line 811)
state_or_province_namestringPinned executable CSR argument (str source line 812)
locality_namestringPinned executable CSR argument (str source line 816)
organization_namestringPinned executable CSR argument (str source line 817)
organizational_unit_namestringPinned executable CSR argument (str source line 818)
common_namestringPinned executable CSR argument (str source line 822)
email_addressstringPinned executable CSR argument (str source line 823)
subject_alt_namelistPinned executable CSR argument (list source line 824)
subject_alt_name_criticalboolfalsePinned executable CSR argument (bool source line 829)
use_common_name_for_sanbooltruePinned executable CSR argument (bool source line 834)
key_usagelistPinned executable CSR argument (list source line 839)
key_usage_criticalboolfalsePinned executable CSR argument (bool source line 840)
extended_key_usagelistPinned executable CSR argument (list source line 845)
extended_key_usage_criticalboolfalsePinned executable CSR argument (bool source line 850)
basic_constraintslistPinned executable CSR argument (list source line 855)
basic_constraints_criticalboolfalsePinned executable CSR argument (bool source line 860)
ocsp_must_stapleboolfalsePinned executable CSR argument (bool source line 865)
ocsp_must_staple_criticalboolfalsePinned executable CSR argument (bool source line 870)
name_constraints_permittedlistPinned executable CSR argument (list source line 875)
name_constraints_excludedlistPinned executable CSR argument (list source line 876)
name_constraints_criticalboolfalsePinned executable CSR argument (bool source line 877)
create_subject_key_identifierboolfalsePinned executable CSR argument (bool source line 878)
subject_key_identifierstringPinned executable CSR argument (str source line 879)
authority_key_identifierstringPinned executable CSR argument (str source line 880)
authority_cert_issuerlistPinned executable CSR argument (list source line 881)
authority_cert_serial_numberintPinned executable CSR argument (int source line 882)
crl_distribution_pointslistPinned executable CSR argument (list source line 883)
select_crypto_backendstringautoPinned executable CSR argument (str source line 908)
contentstringPinned executable CSR argument (str source line 181)

Example

yaml
# Requirements: a Linux controller and one localhost inventory host.
# Run with --forks 1; use local connection and disable fact gathering.
# /etc/ssl/private/example.pem must already exist and be readable.
# Use the supported native Go runtime with Go FIPS mode disabled.
# The shipped CPython64/seed0 JSON compatibility model needs no Python
# installation or PYTHONHASHSEED setting; general Python/provider parity is not claimed.
# Use 1-16 supported tasks with no_log: true and the same valid literal register.
# Loops, delegation, roles, handlers and task/play environments are unsupported.
# Codec/resource/native-provider limits fail closed; SSH and multiple hosts
# are outside this profile. The private register is opaque to ordinary debug.
- name: Generate a private local certificate signing request
  hosts: localhost
  connection: local
  gather_facts: false
  tasks:
    - name: Generate an in-memory certificate signing request
      community.crypto.openssl_csr_pipe:
        privatekey_path: /etc/ssl/private/example.pem
        common_name: example.test
      no_log: true
      register: csr
Search
    ↑ ↓ move↵ openesc close