critical in nameConstraints lost after last refactoring

This commit is contained in:
Jack Ivanov 2020-01-21 13:01:54 +01:00 committed by Jack Ivanov
parent c5cfe9268a
commit d5e4964b32

View file

@ -17,7 +17,7 @@ subjectAltName: >-
{%- if ipv6_support -%},IP:{{ ansible_default_ipv6['address'] }}{%- endif -%} {%- if ipv6_support -%},IP:{{ ansible_default_ipv6['address'] }}{%- endif -%}
subjectAltName_USER: "email:{{ item }}@{{ openssl_constraint_random_id }}" subjectAltName_USER: "email:{{ item }}@{{ openssl_constraint_random_id }}"
nameConstraints: >- nameConstraints: >-
permitted;{{ subjectAltName_type }}:{{ IP_subject_alt_name }}{{- '/255.255.255.255' if subjectAltName_type == 'IP' else '' -}} critical,permitted;{{ subjectAltName_type }}:{{ IP_subject_alt_name }}{{- '/255.255.255.255' if subjectAltName_type == 'IP' else '' -}}
{%- if subjectAltName_type == 'IP' -%} {%- if subjectAltName_type == 'IP' -%}
,permitted;DNS:{{ openssl_constraint_random_id }} ,permitted;DNS:{{ openssl_constraint_random_id }}
{%- else -%} {%- else -%}