This script allows you to whitelist / accept / trust your self-signed / custom / invalid certificate by putting it into your Keychain. This is helpful to convince your favorite browser (Chrome or Opera) to not give a shit about its issuer or whatever.
git clone https://gist.github.com/beevelop/cf60f88292ad76b0e1bc37ed688c07b4 whiteliste_ssl
cd whiteliste_ssl
chmod +x whitelist_ssl.sh
./whitelist_ssl.sh https://my-self-signed-domain.foobar/whatever/