Skip to content

Instantly share code, notes, and snippets.

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