1
0
mirror of https://github.com/ArcticFoxes-net/Synapse-Ubuntu-ZFS synced 2024-11-14 06:31:33 -05:00
Synapse-Ubuntu-ZFS/TLSA.sh

8 lines
277 B
Bash
Raw Normal View History

2023-08-25 16:17:37 -04:00
#!/bin/sh
cat <<EOF
_443._tcp.matrix.arcticfoxes.net. IN TLSA 3 1 1 $(openssl x509 -in /etc/letsencrypt/live/matrix.arcticfoxes.net/cert.pem -noout -pubkey |
openssl pkey -pubin -outform DER |
openssl dgst -sha256 -binary |
hexdump -ve '/1 "%02x"')
EOF