Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions dev-proxy/trust-cert.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/bash
set -e

echo -e "\nDev Proxy uses a self-signed certificate to intercept and inspect HTTPS traffic.\nUpdate the certificate in your Keychain so that it's trusted by your browser? (Y/n)? \c"
read -n 1 answer
echo -e "\nDev Proxy uses a self-signed certificate to intercept and inspect HTTPS traffic."
read -r -p "Update the certificate in your Keychain so that it's trusted by your browser? (Y/n): " answer

if [ "$answer" = "n" ]; then
if [ "$answer" = "n" ] || [ "$answer" = "N" ]; then
echo -e "\n\033[1;33mTrust the certificate in your Keychain manually to avoid errors.\033[0m\n"
exit 1
fi
Expand Down