self_signed_certificate
Ansible Role: Self-signed certificate
An Ansible Role that generates a TSL/SSL self-signed certificate.
Requirements
None.
Role Variables
self_signed_certificate_FQDN
: list of Fully Qualified Domain Names (CN)
Private key variables
self_signed_certificate_key_path
: directory where the private key will beself_signed_certificate_key_type
: private key type, can beRSA
(default) orDSA
self_signed_certificate_key_size
: private key bits, defaults to4096
Certificate Signing Request variables
self_signed_certificate_csr_path
: directory where the certificate signing request will beself_signed_certificate_csr_digest
: certificate signing request digest, defaults tosha512
self_signed_certificate_email
: certificate signing request email address (E)self_signed_certificate_city
: certificate signing request locality name (L)self_signed_certificate_state
: certificate signing request state or province name (ST)self_signed_certificate_country
: certificate signing request country name (C)self_signed_certificate_organisation
: certificate signing request organization name (O)self_signed_certificate_organizational_unit
: certificate signing request organizational unit name (OU)
Certificate variables
self_signed_certificate_path
: directory where the certificate will beself_signed_certificate_digest
: certificate digest, defaults tosha512
self_signed_certificate_not_after
: the point in time at which the certificate stops being valid, defaults to+3650d
(ten years)
Dependencies
None.
Example Playbook
- name: Generate self-signed certificate
hosts: all
roles:
- hadrienpatte.self_signed_certificate
License
MIT
Author Information
Install
ansible-galaxy install HadrienPatte/ansible-role-self-signed-certificate
License
mit
Downloads
1725
Owner
Automation enthusiast