I am working on a feature where I want to decrypt the encrypted traffic which is being sent to the server. I am aware that data get encrypted to ensure that only server is able to decipher what the message was.
But I am in a situation where I need to figure out the data which was actually being sent to the server.
If I have a setup where both the "client and server" are under my control I can run the https server on the server and make the client make a curl request(preferably with RC4 encryption) so that I can decrypt the data reaching the server using the server key (using wireshark).
How do I approach this problem if the server is not under my control? Say if the server is YouTube how do I decrypt the traffic then? Is there any browser setting I can use for the same?