Skip to content

Instantly share code, notes, and snippets.

@syndrowm
Last active June 8, 2020 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save syndrowm/62d8643c0651e038616ec3d5fafc96bb to your computer and use it in GitHub Desktop.
Save syndrowm/62d8643c0651e038616ec3d5fafc96bb to your computer and use it in GitHub Desktop.
Install curl with http3 (QUIC) support on kali-rolling
# Mostly just https://github.com/curl/curl/blob/master/docs/HTTP3.md#quiche-version
# with the specific requirements for debian/kali
sudo apt-get install -y git build-essential libtool libunwind-dev autoconf cmake golang cargo
git clone --recursive https://github.com/cloudflare/quiche
cd quiche
cargo build --release --features pkg-config-meta,qlog
mkdir deps/boringssl/lib
ln -vnf $(find target/release -name libcrypto.a -o -name libssl.a) deps/boringssl/lib/
cd ..
git clone https://github.com/curl/curl
cd curl
./buildconf
./configure LDFLAGS="-Wl,-rpath,$PWD/../quiche/target/release" --with-ssl=$PWD/../quiche/deps/boringssl --with-quiche=$PWD/../quiche/target/release --enable-alt-svc
make
sudo make install
export LD_LIBRARY_PATH=/usr/local/lib
curl --http3 https://quic.aiortc.org/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment