2024-10-30 14:15:35 -05:00
|
|
|
#!/bin/sh
|
|
|
|
echo "Creating Target CA bundle directory..."
|
|
|
|
mkdir -p "$HOME"/.config/target-certs
|
|
|
|
|
|
|
|
# Download the Target CA bundle
|
|
|
|
echo "Downloading Target CA bundle..."
|
|
|
|
if ! curl -s -o "$HOME"/.config/target-certs/tgt-ca-bundle.crt \
|
2024-10-31 16:35:23 -05:00
|
|
|
https://browserconfig.target.com/tgt-certs/tgt-ca-bundle.crt; then
|
2024-10-30 14:15:35 -05:00
|
|
|
echo "Failed to download Target CA bundle."
|
|
|
|
exit 1
|
|
|
|
else
|
|
|
|
echo "Downloaded and installed Target CA bundle."
|
2024-10-31 16:35:23 -05:00
|
|
|
fi
|