Skip to content

Instantly share code, notes, and snippets.

@ShadowySpirits
Created October 6, 2019 09:10
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 ShadowySpirits/5e639bfaf012ad5840f36a591f7d4904 to your computer and use it in GitHub Desktop.
Save ShadowySpirits/5e639bfaf012ad5840f36a591f7d4904 to your computer and use it in GitHub Desktop.
[Test TLS1.3 Early data]
#!/usr/bin/env bash
set -exuo pipefail
host=tls-test.sspirist.top # replace with your server name
echo -e "HEAD / HTTP/1.1\r\nHost: \r\nConnection: close\r\n\r\n" > request.txt
openssl s_client -connect :443 -tls1_3 -sess_out session.pem -ign_eof < request.txt
openssl s_client -connect :443 -tls1_3 -sess_in session.pem -early_data request.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment