| 1 | #!/bin/zsh |
| 2 | |
| 3 | [ -e /etc/ssl/cert.pem.orig ] || sudo cp -p /etc/ssl/cert.pem /etc/ssl/cert.pem.orig |
| 4 | |
| 5 | t=$(mktemp) && |
| 6 | awk -v s='=== /C=IN/OU=emSign PKI/O=eMudhra Technologies Limited/CN=emSign ECC Root CA - G3' \ |
| 7 | '/^(===|###) /{skip=0} $0==s{skip=1} !skip' /etc/ssl/cert.pem > "$t" && |
| 8 | [ -s "$t" ] && sudo install -m 0644 -o root -g wheel "$t" /etc/ssl/cert.pem; rm -f "$t" |
| 9 | |
| 10 | t=$(mktemp) && |
| 11 | awk -v s='=== /C=GB/ST=Greater Manchester/L=Salford/O=Comodo CA Limited/CN=AAA Certificate Services' \ |
| 12 | '/^(===|###) /{skip=0} $0==s{skip=1} !skip' /etc/ssl/cert.pem > "$t" && |
| 13 | [ -s "$t" ] && sudo install -m 0644 -o root -g wheel "$t" /etc/ssl/cert.pem; rm -f "$t" |
| 14 | |
| 15 | openssl crl2pkcs7 -nocrl -certfile /etc/ssl/cert.pem | openssl pkcs7 -print_certs -noout | |
| 16 | grep -E 'emSign ECC Root CA - G3|AAA Certificate Services' |
db / remove_emudhra_certs.sh
Last active 1 month ago
Revision c255e52ed4ea699f5db2bee3b4913ac7969bbece