Sha256: e715ed80aa16f7421e45c60a7b350795569d80243cc81e33f2da111ba0e446e9
Contents?: true
Size: 744 Bytes
Versions: 6
Compression:
Stored size: 744 Bytes
Contents
#!/bin/bash cert="$(dirname $0)/rootCA.pem" function mac { sudo security add-trusted-cert -d -r trustRoot -k /Library/Keychains/System.keychain $cert } function linux { distribution=$(find /etc/*-release -type f | xargs cat | grep 'ID' | head -n1 | awk -F'=' '{gsub(/"/,"",$2); print tolower($2)}') echo $distribution case $distribution in debian|ubuntu|linuxmint*|elementary*) sudo mkdir -p /usr/local/share/ca-certificates sudo cp $cert /usr/local/share/ca-certificates/richterrettich.crt sudo update-ca-certificates;; fedora|centos) sudo cp $cert /etc/pki/ca-trust/source/anchors sudo update-ca-trust;; esac } case $OSTYPE in darwin*) mac ;; linux-gnu*) linux ;; esac
Version data entries
6 entries across 6 versions & 1 rubygems