Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
[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
You can’t perform that action at this time.