Last active
September 18, 2025 18:08
-
-
Save franciscocpg/a4f52afcc00d472a9d7c407db16a92ee to your computer and use it in GitHub Desktop.
Revisions
-
franciscocpg revised this gist
Feb 26, 2019 . 1 changed file with 2 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,5 @@ 1. After installing mitmproxy run it (just type `mitmproxy`) in a terminal session and quit. This will create the necessaries certificates files at `~/.mitmproxy`. 2. Extract the certificate to `.crt` format: `openssl x509 -in ~/.mitmproxy/mitmproxy-ca.pem -inform PEM -out ca.crt` -
franciscocpg revised this gist
Feb 26, 2019 . 1 changed file with 4 additions and 6 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,11 +1,11 @@ 1. After installing mitmproxy run it in a terminal session and quit. This will create the necessaries certificates files at `~/.mitmproxy`: `mitmproxy` 2. Extract the certificate to `.crt` format: `openssl x509 -in ~/.mitmproxy/mitmproxy-ca.pem -inform PEM -out ca.crt` 3. Trust the certificate into CA: `sudo trust anchor ca.crt` 4. Run the `mitmproxy` again @@ -16,7 +16,5 @@ export http_proxy='http://localhost:8080' export https_proxy='http://localhost:8080' ``` 6. Run a curl to an https site and it should work: `curl https://www.google.com` -
franciscocpg created this gist
Feb 26, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,22 @@ 1. After installing mitmproxy run it in a terminal session and quit. This will create the necessaries certificates files at `~/.mitmproxy` `mitmproxy` 2. Extract the certificate to `.crt` format: `openssl x509 -in ~/.mitmproxy/mitmproxy-ca.pem -inform PEM -out ca.crt` 3. Trust the certificate into CA `sudo trust anchor ca.crt` 4. Run the `mitmproxy` again 5. Open another terminal session and set the proxy: ```bash export http_proxy='http://localhost:8080' export https_proxy='http://localhost:8080' ``` 6. Run a curl to an https site and it should work: `curl https://www.google.com`