Skip to content

Commit

Permalink
Update DOCS.md (home-assistant#2766)
Browse files Browse the repository at this point in the history
dnssec-keygen no longer creates 

% dnssec-keygen -a HMAC-SHA512 -b 512 -n HOST letsencrypt          21:31:02
dnssec-keygen: fatal: unknown algorithm HMAC-SHA512

From the man page:

In prior releases, HMAC algorithms could be generated for use as
TSIG keys, but that feature was removed in BIND 9.13.0. Use
tsig-keygen to generate TSIG keys.
  • Loading branch information
dlangille authored Jan 25, 2023
1 parent bfcdcda commit f47e5d9
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions letsencrypt/DOCS.md
Original file line number Diff line number Diff line change
Expand Up @@ -413,23 +413,19 @@ on the DNS zone to be used for authentication.
You will need to set up a server with RFC2136 (Dynamic Update) support with a TKEY (to authenticate the updates). How to do this will vary depending on the DNS server software in use. For Bind9, you first need to first generate an authentication key by running

```
$ dnssec-keygen -a HMAC-SHA512 -b 512 -n HOST letsencrypt
Kletsencrypt.+165+20675
```
The key file (Kletsencrypt.+165+20675.key in this example) looks like the following:
$ tsig-keygen -a hmac-sha512 letsencrypt
key "letsencrypt" {
algorithm hmac-sha512;
secret "G/adDW8hh7FDlZq5ZDW3JjpU/I7DzzU1PDvp26DvPQWMLg/LfM2apEOejbfdp5BXu78v/ruWbFvSK5dwYY7bIw==";
};
```
$ cat Kletsencrypt.+165+20675.key
letsencrypt. IN KEY 512 3 165 Cj2SJThIYZqZO39HIOA8dYryzsLT3CI+m43m3yfGfTMvpyYw5DXjn5da hokrwyLe3MTboGkloKIsT6DUcTSdEA==
```
You don't need to publish this; just copy the key data into your named.conf file:
```

key "letsencrypt" {
algorithm hmac-sha512;
secret "Cj2SJThIYZqZO39HIOA8dYryzsLT3CI+m43m3yfGfTMvpyYw5DXjn5da hokrwyLe3MTboGkloKIsT6DUcTSdEA==";
secret "G/adDW8hh7FDlZq5ZDW3JjpU/I7DzzU1PDvp26DvPQWMLg/LfM2apEOejbfdp5BXu78v/ruWbFvSK5dwYY7bIw==";
};

```
Expand Down

0 comments on commit f47e5d9

Please sign in to comment.