Capturing HTTP traffic on SSL enabled sites

 

Background

  • On number of occasions there arises a need to capture HTTP traffic. In dev environments, this is usually accomplished using tools like NetMon or Wireshark
  • Issue arises when we have a need to capture HTTP traffic which is enabled with SSL
  • Without the ability to capture SSL traffic, one usually has to disable SSL, capture traffic and then enable SSL

 

Requirement

  • Capture SSL HTTP traffic via Wireshark utility
  • Have access/required permissions to export out specific certificate in question

 

Disclaimer

These steps should not be performed in production environment and are provided as potential options for debugging purposes in  development environments which have SSL enabled HTTP traffic.

 

Steps

Note: Listed below steps need to be done on Server presenting the certificate

  1. Export out the SSL certificate (with password) using MMC snap in. This needs to be done on the server which is presenting the SSL certificate.
  1. Open wireshark
  2. Go to Edit/Preference, select "SSL" as protocol
  3. Enter appropriate info: X.Y.Z.A (ipaddress),443,http,C:\Users\Login\Desktop\Cert.pfx,(password)
    1. X.Y.Z.A is the IP address of the HTTP server or load balancer in front of the HTTP server
    2. 443 is the SSL port used
    1. Http is the protocol used
    1. "C:\Users\Login\Desktop\Cert.pfx" is the location of the certificate file that contains the certificate (w.r.t to wireshark utility)
    2. Password used while exporting the certificate in step 1 above.

 

 

  1. Click ok
  2. Close Wireshark
  3. Open wireshark and and start network capture
  1. You should be able to see SSL enabled HTTP traffic