File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -48,8 +48,15 @@ if [ "${headless_mode}" = "true" ]; then
48
48
else
49
49
echo " You now need to trust the mitmproxy-ca.crt certificate in your system's trust store."
50
50
echo " The exact process depends on your operating system."
51
- echo " On macOS, drag and drop the mitmproxy-ca.crt file into the Keychain Access app while having the 'Login' keychain selected."
52
- echo " Then, double-click the certificate in the keychain and set ‘Always Trust‘ in the ‘Trust‘ section."
51
+
52
+ if [[ -f " /etc/debian_version" ]]; then
53
+ echo " On Debian-based systems, you can use the following command to trust the certificate:"
54
+ echo " sudo cp ${mitmproxy_ca_crt_file} /usr/local/share/ca-certificates/mitmproxy-ca.crt"
55
+ echo " sudo update-ca-certificates"
56
+ elif [[ " $OSTYPE " == " darwin" * ]]; then
57
+ echo " On macOS, drag and drop the mitmproxy-ca.crt file into the Keychain Access app while having the 'Login' keychain selected."
58
+ echo " Then, double-click the certificate in the keychain and set ‘Always Trust‘ in the ‘Trust‘ section."
59
+ fi
53
60
echo " The certificate is located at: ${mitmproxy_ca_crt_file} "
54
61
echo " After you're done, press enter to continue."
55
62
read -r
You can’t perform that action at this time.
0 commit comments