mirror of
https://github.com/ArcticFoxes-net/Synapse-Ubuntu-ZFS
synced 2024-09-07 17:13:31 -04:00
8 lines
277 B
Bash
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 |