# How to list all available CA SSL certificates on Ubuntu?

To list all available CA SSL certificates run the following lines of code:

```bash
awk -v cmd='openssl x509 -noout -subject' '
```

```bash
/BEGIN/{close(cmd)};{print | cmd}' < /etc/ssl/certs/ca-certificates.crt
```

This will display the `subject` of every CA certificate in
`/etc/ssl/certs/ca-certificates.crt`

But beware that you may get an error if SSL servers forget to provide the
intermediate certificates. In that case, you can try running the following
command to get the list of certificates being sent.

```bash
openssl s_client -showcerts -connect the-git-server:443
```

![Better Uptime Dashboard](https://imagedelivery.net/xZXo0QFi-1_4Zimer-T0XQ/08b5b6cb-f57b-4ff4-cf1d-b303b8a94e00/public =1247x768)

[summary]
## 🔭 Want to centralize and monitor your python logs?
Go to [Logtail](https://betterstack.com/logtail/) and start your log management in 5 minutes.
[/summary]