Skip to content

LeonardWalter/echGenerator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Go ECH Key Generator

This Go project generates Encrypted ClientHello (ECH) key and configuration PEM files according to https://datatracker.ietf.org/doc/draft-farrell-tls-pemesni/

Installation

  1. Clone the repository:

    git clone https://github.com/LeonardWalter/echGenerator.git
    cd echGenerator
  2. Build the executable:

    go build
    ./echGenerator -s example.com -i 123 -o mykeys.pem

Usage

-s: Server name (required).
-i: ECH ID (uint8). If not provided, a random ID will be generated.
-o: Output file name. If not provided, the output file will be <server_name>.pem.ech
-h: Show help.

Example output:

-----BEGIN PRIVATE KEY-----
MC4CAQAwBQYDK2VuBCIEIG7Wc0oeswNKlNMfNe+gSwaFhVU3GDdoSAzfZGDpSaIm
-----END PRIVATE KEY-----
-----BEGIN ECHCONFIG-----
AEb+DQBCFQAgACAfYnXA4GJHffFuchf/+AMUNodczfzPy8RLtVOjFs7FZwAMAAEAAQABAAIAAQADIAtleGFtcGxlLmNvbQAA
-----END ECHCONFIG-----

About

generate Encrypted Client Hello (ECH) key pairs with go

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages