Skip to content

Commit 8908d4d

Browse files
committed
Fix openssl directory resolution - fixes macos14
1 parent 154e941 commit 8908d4d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

monitor/setup.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ if [ "$RUNNER_OS" = "macOS" ]; then
3838
sudo security add-trusted-cert -d -p ssl -p basic -k /Library/Keychains/System.keychain /Users/mitmproxyuser/.mitmproxy/mitmproxy-ca-cert.pem
3939
# sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain /Users/mitmproxyuser/.mitmproxy/mitmproxy-ca-cert.pem
4040
# curl doesn't use the system keychain, so we need to add the certificate to the openssl keychain
41-
# TODO: get openssl dir with openssl version -a
42-
sudo cat /Users/mitmproxyuser/.mitmproxy/mitmproxy-ca-cert.pem >> /usr/local/etc/[email protected]/cert.pem
41+
sudo cat /Users/mitmproxyuser/.mitmproxy/mitmproxy-ca-cert.pem >> `openssl version -d | awk '{ gsub(/"/, "", $2); print $2 }'`/cert.pem
4342
# set environment variable for NodeJS to use the certificate
4443
echo "NODE_EXTRA_CA_CERTS=/Users/mitmproxyuser/.mitmproxy/mitmproxy-ca-cert.pem" >> $GITHUB_ENV
4544
# set environment variable for the Python requests library to use the certificate

0 commit comments

Comments
 (0)