These network capturpes were created using Nginx locally.
This allows to change settings easily.

Have Fun.
André Luyer
SharkFest EU 2026


Below examples how I cretaed these captures.


Mutual-TLS setting:

https://nginx.org/en/docs/http/ngx_http_ssl_module.html#ssl_client_certificate
Syntax:	ssl_verify_client on | off | optional | optional_no_ca;
Default:	
ssl_verify_client off;

1nocert-12.log
SSLKEYLOGFILE=1nocert-12.log curl -v https://localhost/ -k --tls-max 1.2
editcap --inject-secrets tls,1nocert-12.log 1nocert-12.pcapng 1nocert-12-key.pcapng

1nocert-13.log

file=2nocert-13
SSLKEYLOGFILE=$file.log curl -v https://localhost/ -k --tls-max 1.3
editcap --inject-secrets tls,$file.log $file.pcapng $file-key.pcapng
TLS1.3

file=3validate-12
SSLKEYLOGFILE=$file.log curl -v https://localhost/ --tls-max 1.2
editcap --inject-secrets tls,$file.log $file.pcapng $file-key.pcapng
curl: (60) SSL certificate OpenSSL verify result: self-signed certificate (18)


file=5nocc-12
SSLKEYLOGFILE=$file.log curl -v https://localhost/ --tls-max 1.2 -k
editcap --inject-secrets tls,$file.log $file.pcapng $file-key.pcapng

    server {
       listen       443 ssl;
	   listen  [::]:443 ssl;
       server_name  localhost;
	   http2 on;

		ssl_client_certificate ca-bundle.crt;
		ssl_verify_client      on;
		
no client certificate


file=5nocc-13
SSLKEYLOGFILE=$file.log curl -v https://localhost/ --tls-max 1.3 -k
editcap --inject-secrets tls,$file.log $file.pcapng $file-key.pcapng


file=6no-mtls-12
SSLKEYLOGFILE=$file.log curl -v https://localhost/ --tls-max 1.2 -k
editcap --inject-secrets tls,$file.log $file.pcapng $file-key.pcapng

file=7no-mtls-13
SSLKEYLOGFILE=$file.log curl -v https://localhost/ --tls-max 1.3 -k
editcap --inject-secrets tls,$file.log $file.pcapng $file-key.pcapng

file=8wrong-cc-12
SSLKEYLOGFILE=$file.log curl -v https://localhost/ --tls-max 1.2 -k --cert ../client_cert.pem --key ../client_key.pem

file=8wrong-cc-13
SSLKEYLOGFILE=$file.log curl -v https://localhost/ --tls-max 1.3 -k --cert ../client_cert.pem --key ../client_key.pem

openssl pkcs12 -export -out client.p12 -inkey key.pem -in cert.pem
openssl verify -CAfile cert.pem cert.pem

		ssl_certificate ../cert/cert.pem;
		ssl_certificate_key ../cert/key.pem;
		ssl_client_certificate ../cert/cert.pem;

nginx -s reload

file=8mtls-12
SSLKEYLOGFILE=$file.log curl -v https://localhost/ --tls-max 1.2 --cacert cert.pem --key key.pem --cert cert.pem
editcap --inject-secrets tls,$file.log $file.pcapng $file-key.pcapng


file=9mtls-13
SSLKEYLOGFILE=$file.log curl -v https://localhost/ --tls-max 1.3 --cacert cert.pem --key key.pem --cert cert.pem
editcap --inject-secrets tls,$file.log $file.pcapng $file-key.pcapng


file=10mtls-12
SSLKEYLOGFILE=$file.log curl -v https://localhost/ --tls-max 1.2 --cacert cert.pem --key key.pem --cert cert.pem
editcap --inject-secrets tls,$file.log $file.pcapng $file-key.pcapng

		ssl_client_certificate ca-bundle.crt;


file=11mtls-13
SSLKEYLOGFILE=$file.log curl -v https://localhost/ --tls-max 1.3 --cacert cert.pem --key key.pem --cert cert.pem
grep -c "BEGIN CERTIFICATE-----" ../conf/ca-bundle.crt
147



file=20openssl-12
SSLKEYLOGFILE=$file.log openssl s_client -connect localhost:443 -cert cert.pem -key key.pem -CAfile cert.pem -tls1_2 -reconnect
Reused, TLSv1.2, Cipher is ECDHE-RSA-AES256-GCM-SHA384
Protocol: TLSv1.2
Secure Renegotiation IS supported


file=22resumed-12
SSLKEYLOGFILE=$file.log curl -v -H "Connection: close" --http1.1 --tls-max 1.2 --cacert cert.pem --key key.pem --cert cert.pem https://localhost/ https://localhost/ https://localhost/

file=23resumed-13
SSLKEYLOGFILE=$file.log curl -v -H "Connection: close" --http1.1 --tls-max 1.3 --cacert cert.pem --key key.pem --cert cert.pem https://localhost/ https://localhost/ https://localhost/


file=30resumed-12
SSLKEYLOGFILE=$file.log curl -v -H "Connection: close" --http1.1 --tls-max 1.2 --cacert cert.pem --key key.pem --cert cert.pem https://localhost/ https://localhost/ https://localhost/

file=31resumed-13
SSLKEYLOGFILE=$file.log curl -v -H "Connection: close" --http1.1 --tls-max 1.3 --cacert cert.pem --key key.pem --cert cert.pem https://localhost/ https://localhost/ https://localhost/


file=32early-13
SSLKEYLOGFILE=$file.log curl -v -H "Connection: close" --http1.1 --tls-max 1.3 --tls-earlydata --cacert cert.pem --key key.pem --cert cert.pem https://localhost/ https://localhost/ https://localhost/

--tls-earlydata
curl -v -H "Connection: close" --http1.1 --tls-max 1.3 --tls-earlydata --cacert cert.pem --write-out "DATA=%{tls_earlydata}\n" https://localhost/ https://localhost/ https://localhost/

DATA=0
https://linux.die.net/man/1/s_client

file=32early-13
echo -en "GET / HTTP/1.1\r\nHost: localhost\r\nConnection: close\r\n\r\n" |
openssl s_client -connect localhost:443 -CAfile cert.pem -sess_out session.data -tls1_3 -keylogfile keylogfile.log
openssl s_client -tls1_3 -state -connect localhost:443 -servername localhost -keylogfile keylogfile.log -sess_out session.data -sess_in session.data -early_data httpget.txt <<<Q

editcap --inject-secrets tls,../cert/keylogfile.log $file.pcapng $file-key.pcapng
