summaryrefslogtreecommitdiffstats
path: root/roles/lists/templates/etc/postfix/relay_clientcerts.j2
blob: eebaffb831a709b10b05e25f4d2cf072ea342134 (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 -pubkey | openssl pkey -pubin -outform DER | openssl dgst -sha256 -c | sed "s/[^ =]*=\s*//"') }} {{ h }}
{% endfor %}