List All Trusted Certificate Authorities (CA) on Linux 

Debian 8

awk -v cmd='openssl x509 -noout -subject' '
 /BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt

Amazon Linux

awk -v cmd='openssl x509 -noout -subject' '
/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-bundle.trust.crt

The Amazon Linux file is probably the same as other RedHat derivatives.

Advertisements