Creative Commons License

Unless otherwise expressly stated, all original material of whatever nature created by and included in this weblog is licensed under a Creative Commons License.

Publish GPG Keys in DNS, 01.01.2014 13:52

Create the PKA DNS record:

# localpart=andreas url=
# LANG=C gpg --fingerprint ${localpart}@${domain}|awk -v local=$localpart -v domain=$domain -v url=$url \
'/fingerprint/{printf("%s._pka.%s. TXT \"v=pka1;fpr=%s;uri=%s\"\n",local,domain,$4$5$6$7$8$9$10$11$12$13,url)}' TXT "v=pka1;fpr=1073501542F38352FC85788207A32EAB1C6AC951;uri="

Test DNS resolution:

# dig +short -t txt

Test with GPG:

# gpg --auto-key-locate pka -ea -r ${localpart}@${domain}

Detailed explanation of the different DNS publication mechanisms for PGP Keys:
Publishing PGP Keys in DNS


blog comments powered by Disqus