Here’s quick tutorial on how to create a firefox profile and then set it up to proxy through ZAP as well as importing a certificate to avoid firefox warnings because your SSL session is being intercepted.
First open ZAP, click the gear icon or click Tools > Options.
Then click the Dynamic SSL Certifcates tab and then save the certificate.
Close all your Firefox windows and then run the following in a command prompt to load the Firefox Profile Manager:
on Mac it is:
/Applications/Firefox.app/Contents/MacOS/firefox -P -no-remote
Create a new profile then Start Firefox
In Firefox, open the Menu and Preferences.
Select Advanced in the left menu, then the Network tab. Click Settings.
In Connection Settings:
Select “Manual proxy configuration”
In HTTP Proxy, enter “localhost”
In Port:, enter “8080”
Select “Use this proxy server for all protocols” and then click Ok
Now in the Certificates tab. Click View Certificates. Then import the ZAP cert.
Now ZAP will process all your web traffic and intercept all SSL sessions without firefox complaining about it. Enjoy.