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/
# URL gets sanitized and can contain the full path
./whitelist_ssl.sh <URL>
- Use
trustAsRoot
(instead oftrustRoot
) in order to automatically enable Always trust.
This script has been successfully tested on
- macOS Sierra 10.12.6
- Google Chrome Version 63.0.3239.59 (Official Build) beta (64-bit)
- Opera Developer 51.0.2781.0
- Should inform you about „reduced security due to a local, non-public certificate”.
- Firefox Developer Edition 58.0b7 (64-bit) didn't gave a fuck about my Kechain.
- Make the port configurable via
$2
.