1
0
mirror of https://github.com/ArcticFoxes-net/Synapse-Ubuntu-ZFS synced 2024-09-07 17:13:31 -04:00
Synapse-Ubuntu-ZFS/TLSA.sh
2023-08-25 13:17:37 -07:00

8 lines
277 B
Bash

#!/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