Commit fb4b8910 authored by Oyvind.Gjesdal's avatar Oyvind.Gjesdal
Browse files

rettelse sti chain

parent 01ec9e2b
......@@ -120,7 +120,7 @@
state: "link"
src: "{{ apache_digicert_uib_archive }}/{{ item.servername }}/cert.cer"
dest: "/etc/pki/tls/certs/{{ item.servername }}.pem"
when: "item.ssl_type | default('certbot')== 'uib' and item.certificate_url is defined"
when: "item.ssl_type | default('certbot')== 'uib' and item.certificate_only_url is defined"
- name: "Create symlinks for chains to /etc/pki/"
loop: "{{ apache_vhosts }}"
......@@ -128,7 +128,7 @@
state: "link"
src: "{{ apache_digicert_uib_archive }}/{{ item.servername }}/cert_interm.cer"
dest: "/etc/pki/tls/certs/{{ item.servername }}.chain.pem"
when: "item.ssl_type | default('certbot')== 'uib' and item.certificate_url is defined"
when: "item.ssl_type | default('certbot')== 'uib' and item.certificate_interm_only_url is defined"
- name: "Add apache vhosts ssl template"
template:
......
......@@ -40,7 +40,7 @@ SSLOptions +StrictRequire
SSLCertificateFile {{ vhost.certificate_file | default('/etc/pki/tls/certs/'+ vhost.servername + '.pem') }}
SSLCertificateKeyFile {{ vhost.certificate_key_file | default('/etc/pki/tls/private/' + vhost.servername + '.pem') }}
SSLCertificateChainFile {{vhost.certificate_chain_file | default('/etc/pki/tls/private/' + vhost.servername + '.chain.pem') }}
SSLCertificateChainFile {{vhost.certificate_chain_file | default('/etc/pki/tls/certs/' + vhost.servername + '.chain.pem') }}
{% endif %}
{% if vhost.serveradmin is defined %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment