Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rglastra on github.
  • I am robglas (https://keybase.io/robglas) on keybase.
  • I have a public key ASA1LtqH1Vq4_sr085ArBgRpZxGEgIJ6n5A6R9R6KUVd7Qo

To claim this, I am signing this object:

@rglastra
rglastra / gist:3ef9582c6292470a1743
Last active September 2, 2022 16:23
Check available certs in ca-certificates.crt by subject.
#!/bin/bash
echo "All certificates in ca-certificates.crt, listed by subject:"
awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt
echo "All certificates in ca-certificates.crt, listed by subject, check for presence of VeriSign's 'Class 3 Public Primary - G5':"
awk -v cmd='openssl x509 -noout -subject' '/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt | grep "G5"