A Bash script that configures Google Drive for Desktop on macOS to trust SSL certificates when behind Netskope SSL Decryption.
Unlike most apps on macOS, Google Drive maintains its own certificate store and doesn't trust the system store. This script bundles Netskope’s CA certificates together with Mozilla’s trusted root CA bundle, ensuring Google Drive continues to function correctly whether Netskope SSL Decryption is enabled or disabled. It then updates Google Drive’s TrustedRootCertsFile setting and restarts the app to apply changes.
Note: This script primarily serves as a proof of concept. It will likely need to be adapted for centralized deployment and configuration across business-managed macOS devices.
- Validates required tools and dependencies
- Downloads Netskope root and intermediate CA certificates, plus Mozilla’s CA bundle
- Detects and replaces stale certificate bundles
- Updates Google Drive’s
TrustedRootCertsFilesetting to use the new bundle - Supports configurable logging (CLI, file, or both)
- Cleanly restarts Google Drive to apply changes
- macOS
- Google Drive for Desktop
curlshasumdefaultssudoprivileges
- Clone or download this repository.
cd google-drive-netskope-cert-bundle- Edit the script to match your configuration.
chmod +x configure-google-drive-netskope.shsudo ./configure-google-drive-netskope.sh- If macOS quarantines the file, run:
xattr -d com.apple.quarantine ./configure-google-drive-netskope.sh
Edit the CONFIGURATION section at the top of the script:
- TENANT_NAME — your Netskope tenant FQDN (e.g., example.goskope.com)
- ORG_KEY — found within the Netskope Administrator Portal under Settings > Security Cloud Platform > MDM Distribution > Organization ID
- ALLOW_INSECURE_SSL — allow cURL to skip SSL/TLS validation (
true/false)- Default:
true(cURL may not trust Netskope’s certificate by default.) - If set to
false, you can either configure cURL to trust the Netskope CA, configure cURL as a certificate pinned application in Netskope, or bypass the domaincurl.sefrom Netskope SSL Decryption.
- Default:
- CERT_FILENAME — certificate bundle filename
- LOG_MODE — choose
cli,file, orboth
- Ability to pass tenant FQDN and organization ID as command-line arguments, rather than hardcoding values in the script.
- Option to exclude the Mozilla CA bundle and trust only Netskope’s certificates.
- A comparable script for Google Drive for Desktop on Windows is in development.
Licensed under MIT — free to use, modify, and share, with no warranty.
This project is not affiliated with or supported by Netskope. It may be incomplete, outdated, or inaccurate. Use at your own risk.