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

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