]> SAFE projects GIT repository - jmp/mailleur/commitdiff
do_dns_tlsa.sh is near production
authorJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 24 Jul 2025 13:51:29 +0000 (09:51 -0400)
committerJean-Marc Pigeon (Delson) <jmp@safe.ca>
Thu, 24 Jul 2025 13:51:29 +0000 (09:51 -0400)
support/do_dns_tlsa.sh

index e297cea8f8180797018503aaacab4dd473287b5a..14a370eeedbcca3a50e97bcd60533d4088f9bc0d 100755 (executable)
@@ -77,12 +77,14 @@ gen_dane ()
 {
 SUM=`openssl ec -in ./ec_key.pem -pubout -outform DER | sha256sum`
 
+(
 echo ";--------------------------------------------"
 echo ";TLSA record to be inserted in domain DNS"
 echo -e "_25._tcp.`hostname -s`\tTLSA\t3 1 1\t$SUM"
 echo -e "_465._tcp.`hostname -s`\tTLSA\t3 1 1\t$SUM"
 echo -e "_587._tcp.`hostname -s`\tTLSA\t3 1 1\t$SUM"
 echo ";--------------------------------------------"
+) > ./dns_tlsa
 }
 
 #Set working directory