esnipubkey-rs
is CLI to fetch ESNI public key.
You can install esnipubkey-rs
with the following:
$ cargo install --git https://github.com/thekuwayama/esnipubkey-rs.git --branch main
$ esnipubkey --help
esnipubkey 0.1.0
CLI to fetch ESNI public key
USAGE:
esnipubkey [FLAGS] <name>
FLAGS:
-h, --help Prints help information
--hex Prints ESNIKeys in hex
-V, --version Prints version information
ARGS:
<name> Query Name
$ esnipubkey cloudflare.com
ESNIKeys {
version: "ff01",
checksum: "[f8, b1, e1, 6e]",
keys: [
KeyShareEntry {
group: 29,
key_exchange: "[01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01, 01]",
}
],
cipher_suites: "[(13, 01)]",
padded_length: 260,
not_before: "Sat, 26 Dec 2020 04:00:00 +0900",
not_after: "Fri, 01 Jan 2021 04:00:00 +0900",
extensions: [],
}
refer: Before ECH there was (and is!) ESNI
The CLI is available as open source under the terms of the MIT License.