Skip to content
Snippets Groups Projects
Commit 98da1922 authored by ale's avatar ale
Browse files

Do not create CAs with empty subjects

The x509_ca_subject variable shouldn't have an empty default.
parent 81ab9055
No related branches found
No related tags found
No related merge requests found
......@@ -44,4 +44,4 @@
local_action: command openssl dhparam -out "{{ credentials_dir }}/x509/dhparam" "{{ dhparam_bits | default('2048') }}" creates="{{ credentials_dir }}/x509/dhparam"
- name: Generate the X509 CA certificate
local_action: x509_ca ca_subject="{{ x509_ca_subject | default('') }}" ca_cert_path="{{ credentials_dir }}/x509/ca.pem" ca_key_path="{{ credentials_dir }}/x509/ca_private_key.pem"
local_action: x509_ca ca_subject="{{ x509_ca_subject | default('CN=Service CA') }}" ca_cert_path="{{ credentials_dir }}/x509/ca.pem" ca_key_path="{{ credentials_dir }}/x509/ca_private_key.pem"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment