Skip to content

Instantly share code, notes, and snippets.

View markthebault's full-sized avatar

Mark Thebault markthebault

View GitHub Profile
@markthebault
markthebault / add-custom-certificate.sh
Last active September 1, 2016 15:06
inject custom certificate to docker-for-mac beta (1.12.0-rc4-beta20 build:10404)
#!/bin/bash
if [ "$#" -ne 2 ] || ! [ -d "$1" ]; then
echo "Usage: $0 /Path/To/Certificate CERT_NAME" >&2
exit 1
fi
# This assumes the cert is in the same directory as the script
source="$( cd $1 && pwd )"
# ca-certificate of the VM