-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
encrypted client hello (ECH) config support
This commit updates pemfile to support reading PEM encoded encrypted client hello (ECH) items from PEM files. We identify these based on the "ECHCONFIG" header value proposed in draft-farrell-tls-pemesni[0]. For convenience, a `server_ech_configs` fn is added that expects the exact format described in draft-farrell-tls-pemesni for servers; a PEM encoded PKCS#8 encoded private key followed by the PEM encoded TLS encoded ECH config list. Both items are mandatory and an error is raised if missing. In some cases (e.g. testing client support) it may be sufficient to only read an iterator of the ECH config list items from a PEM file, skipping private keys or other items. For this the `ech_configs` fn is added, matching similar helpers for other item types. [0]: https://github.com/sftcd/pemesni/blob/44bcf7259f204a60421ea05be02a1e2859cadaa9/draft-farrell-tls-pemesni.txt
- Loading branch information
Showing
4 changed files
with
110 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
-----BEGIN PRIVATE KEY----- | ||
MC4CAQAwBQYDK2VuBCIEICjd4yGRdsoP9gU7YT7My8DHx1Tjme8GYDXrOMCi8v1V | ||
-----END PRIVATE KEY----- | ||
-----BEGIN ECHCONFIG----- | ||
AD7+DQA65wAgACA8wVN2BtscOl3vQheUzHeIkVmKIiydUhDCliA4iyQRCwAEAAEA | ||
AQALZXhhbXBsZS5jb20AAA== | ||
-----END ECHCONFIG----- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters