https://github.com/hadrienpatte/ansible-role-self-signed-certificate
Ansible Role - Self-signed certificate
https://github.com/hadrienpatte/ansible-role-self-signed-certificate
ansible-role self-signed-certificate
Last synced: about 2 months ago
JSON representation
Ansible Role - Self-signed certificate
- Host: GitHub
- URL: https://github.com/hadrienpatte/ansible-role-self-signed-certificate
- Owner: HadrienPatte
- License: mit
- Created: 2019-02-19T05:17:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-22T22:40:48.000Z (over 6 years ago)
- Last Synced: 2025-06-03T10:59:18.638Z (about 1 year ago)
- Topics: ansible-role, self-signed-certificate
- Language: Python
- Homepage: https://galaxy.ansible.com/hadrienpatte/self_signed_certificate
- Size: 35.2 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ansible Role: Self-signed certificate
[](https://travis-ci.com/HadrienPatte/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 be
* `self_signed_certificate_key_type`: private key type, can be `RSA` (default)
or `DSA`
* `self_signed_certificate_key_size`: private key bits, defaults to `4096`
### Certificate Signing Request variables
* `self_signed_certificate_csr_path`: directory where the certificate signing
request will be
* `self_signed_certificate_csr_digest`: certificate signing request digest,
defaults to `sha512`
* `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 be
* `self_signed_certificate_digest`: certificate digest, defaults to `sha512`
* `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
```yaml
- name: Generate self-signed certificate
hosts: all
roles:
- hadrienpatte.self_signed_certificate
```
## License
MIT
## Author Information
Hadrien Patte [](https://peegeepee.com/FB500BB0)