evansun922 / nginx-quic

nginx support quic
BSD 2-Clause "Simplified" License
230 stars 76 forks source link

How to let nginx log the ssl key log file by changing nginx.conf file #12

Open Karthikdasari0423 opened 1 year ago

Karthikdasari0423 commented 1 year ago

Hi @evansun922 ,

My goal is capture the pcap file on my linux machine which is using nginx to connect and decrypt those packets using ssl key log file.but i am unable to find how to capture ssl key log file on nginx. Could someone please help me how to capture ssl key log file ?

Thanks, Kartheek.

n0099 commented 1 year ago

try the de facto environment variable SSLKEYLOGFILE https://security.stackexchange.com/questions/216065/extracting-openssl-pre-master-secret-from-nginx or this nginx module: https://github.com/tiandrey/nginx-sslkeylog

Karthikdasari0423 commented 1 year ago

Thank you for replying back.

i tried both but didnt worked,any more info on this