-
-
Save bessarabov/7531eb0be01df990564d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
osx-host$ boot2docker ssh | |
sudo su - | |
cd /var/lib/boot2docker/ | |
cat <<EOF >bootlocal.sh | |
#!/bin/sh | |
cp /Users/ivan.dyachkov/MyCA.crt /usr/local/share/ca-certificates/ | |
CERT=/usr/local/share/ca-certificates/MyCA.crt | |
HASH=$(openssl x509 -hash -in $CERT | head -n1) | |
ln -s $CERT /etc/ssl/certs/$HASH.0 | |
grep -q $(head -2 $CERT | tail -1) /etc/ssl/certs/ca-certificates.crt || cat $CERT >> /etc/ssl/certs/ca-certificates.crt | |
EOF | |
chmod +x bootlocal.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment