Skip to content

Commit 13d579f

Browse files
committed
feat: improve instructions in setup wizard
1 parent 96da00b commit 13d579f

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

tests_integration/mitmproxy_setup_wizard.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,15 @@ if [ "${headless_mode}" = "true" ]; then
4848
else
4949
echo "You now need to trust the mitmproxy-ca.crt certificate in your system's trust store."
5050
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
5360
echo "The certificate is located at: ${mitmproxy_ca_crt_file}"
5461
echo "After you're done, press enter to continue."
5562
read -r

0 commit comments

Comments
 (0)