System wide proxy in Linux

The desktop app does not provide an easy way to activate system wide proxy on Linux devices.
This is because there are many different ways of setting up proxy and certificates on all the major distros.
The following are the steps to configure systemwide proxy on ubuntu to intercept and modify traffic with Requstly

1. Download the certificate

Go to the Connected Apps inside Requestly and click on the button at the very bottom
In the following window, click on Save Certificate to download the custom certificate. Also note the host and port number this will come in handy later

2. Install the Certificates

TLDR; inside a terminal, navigate to where the certificate was downloaded and run the following
openssl x509 -outform der -in RQProxyCA.pem -out RQProxyCA.crt
sudo mv RQProxyCA.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates --fresh


The previous step gives you a `.pem` file which contains both the certificate and the key. To extract the certificate run the following command in the terminal.
openssl x509 -outform der -in RQProxyCA.pem -out RQProxyCA.crt
now we need to copy this certificate to the system's keystore. To do so, copy the certificate to /usr/local/share/ca-certificates using
sudo mv RQProxyCA.crt /usr/local/share/ca-certificates/
and run this command to update the keystore
sudo update-ca-certificates --fresh


Although this works for most cases, most mordern browsers like chrome and firefox do not read from the system's keystore and it would be better to launch these directly from requestly than relying on these system configurations to work

3. Setting up the proxy

As mentioned before, there are many ways to setup the system proxy on linux distros and you can probably find the one that is right for you with a simple google search
Here's a detailed article explaining all the possible ways on ubuntu