summaryrefslogtreecommitdiffstats
path: root/roles/lists/templates/etc/postfix/relay_clientcerts.j2
blob: 42a83b5aff96ca274ed12ae3b1dee1956af79a37 (plain)
1
2
3
4
5
6
# {{ ansible_managed }}
# /!\ WARNING: smtp_tls_fingerprint_digest MUST be sha256!

{% for h in groups.MX | difference([inventory_hostname]) | sort %}
{{ lookup('pipe', 'openssl x509 -in certs/postfix/'+h+'.pem -noout -fingerprint -sha256 | cut -d= -f2') }} {{ h }}
{% endfor %}