I've an android and ios app. They run on the same application server on Linux. I want to capture the packets when users are trying to log in to the app. How do I proceed? I'm thinking of doing it with tcpdump and putting that pcap file into wireshark. Will this work?
I am asking if this works because lots of change requests need to be done for this issue.
Below part is not relevant to the question but helps.
The issue that I am getting is called "Could not connect to server due to SSL Error" while trying to log in via android app.
Thus I'm trying to sniff the packets and figure out the root cause as I'm out of options to debug.
The problem is that the logs don't store anything till the user isn't logged in.
The nginx web server is just used for proxy pass. So, the packets need to be sniffed (between proxy and the server api which is hit after user is logged in successfully)