Is there a way to set proxy-cacert? #3860
-
Hi, I'm trying to intercept my own traffic using MitMproxy. If I'm using curl I need to do something like below using curl -vvv --cacert ~/.mitmproxy/mitmproxy-ca-cert.pem --proxy-cacert ~/.mitmproxy/mitmproxy-ca-cert.pem --proxy https://127.0.0.1:8080 --header 'Content-Type: x/x' --data-binary "@{{ rootfolder }}/{{ file }}" "${base_api}" Is there a trick I'm missing that other people are using? I tried searching for an envvar for curllib but I don't think it works that way. export CURLOPT_PROXY_SSLCERT=~/.mitmproxy/mitmproxy-ca-cert.pem It might be nice to allow raw curl overrides or values that can be passed in or set. Unless that feature exists and I don't know about it. I've raised as a discussion first before going to a feature request. Thanks for an awesome tool. Chris. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
curl options (line See #3861 |
Beta Was this translation helpful? Give feedback.
Hi @chrisguest75
curl options (line
--proxy-cacert
) are not "automatically" supported, we need to implement each commadn on Hurl, most of the time the Hurl option is activating the libcurl equivalent (like--proxy-cacert
will useCURLOPT_PROXY_ISSUERCERT
from libcurl). I'm creating an issue for itSee #3861