Enable HTTPS Traffic
Configure the forward proxy to intercept HTTPS traffic
To enable recording HTTPS traffic, we first must trust Stoobly agent to be a certificate authority. To do so, you will need to add the CA certificate generated by Stoobly as a trusted certificate authority.
System Wide Configuration
Automated Setup
In the terminal run the following command:
stoobly-agent ca-cert installThis installs the CA certificate under System in Keychain Access. To find the certificate file path, use:
stoobly-agent ca-cert show --format cerIn the terminal run the following command:
stoobly-agent ca-cert installThis will run Linux distribution specific commands to install the CA cert. We currently support the following distributions:
Debian based ones, such as Ubuntu
RHEL based ones, such as CentOS
Manual Setup
Get the certificate path:
stoobly-agent ca-cert show --format cerThis outputs the path to the certificate file (e.g.
~/.stoobly/ca_certs/mitmproxy-ca-cert.cer).Open Keychain Access and click the + button in the top left corner
Select the certificate file using the path from step 1
Double-click the newly added row mitmproxy
Click the dropdown next to When using this certificate, and select Always Trust
Get the certificate path:
stoobly-agent ca-cert show --format pemThis outputs the path to the certificate file (typically
~/.stoobly/ca_certs/mitmproxy-ca-cert.pem).Install the certificate for your Linux distribution using the certificate path from step 1:
For Debian/Ubuntu-based distributions:
sudo cp $(stoobly-agent ca-cert show --format pem) /usr/local/share/ca-certificates/mitmproxy-ca-cert.crt sudo update-ca-certificatesFor RHEL/CentOS-based distributions:
sudo cp $(stoobly-agent ca-cert show --format pem) /etc/pki/ca-trust/source/anchors/mitmproxy-ca-cert.crt sudo update-ca-trust
Browser Configuration
Most browsers use the system certificate store, so after running stoobly-agent ca-cert install, Chrome, Edge, and Safari should automatically trust the CA certificate. Firefox uses its own certificate store and requires manual configuration.
Chrome and Edge use the system certificate store. After installing the CA certificate system-wide with stoobly-agent ca-cert install, these browsers should automatically trust it.
Verification:
Start Stoobly agent:
stoobly-agent runConfigure your browser to use the proxy (see Forward Proxy configuration)
Visit an HTTPS site (e.g.,
https://example.com)If no certificate warning appears, the CA certificate is properly trusted
If you see certificate warnings:
Ensure you ran
stoobly-agent ca-cert installwith administrator privilegesRestart your browser after installing the certificate
On macOS, verify the certificate is trusted in Keychain Access
Firefox uses its own certificate store and requires manual import of the CA certificate.
Get the certificate path:
This outputs the path to the certificate file (typically
~/.stoobly/ca_certs/mitmproxy-ca-cert.pem).Open Firefox and navigate to certificate settings:
Go to Settings (or Preferences)
Search for "certificates" in the search bar
Click View Certificates under Certificates
Import the certificate:
Click the Authorities tab
Click Import...
Navigate to the certificate path from step 1 (use the full path)
Select the certificate file and click Open
Trust the certificate:
In the dialog that appears, check Trust this CA to identify websites
Click OK
Verify:
Start Stoobly agent:
stoobly-agent runConfigure Firefox to use the proxy
Visit
https://example.com- you should see no certificate warning
Note: You can also use --format cer if you prefer the .cer format:
Safari uses the macOS system Keychain. After running stoobly-agent ca-cert install, Safari should automatically trust the certificate.
Verification:
Verify the certificate is installed in Keychain Access:
Open Keychain Access
Search for "mitmproxy" or "stoobly"
Ensure it shows Trust as "Always Trust"
If not trusted:
Double-click the certificate
Expand Trust
Set When using this certificate to Always Trust
Close the dialog
Restart Safari and test with an HTTPS site through the proxy
Last updated
Was this helpful?