Skip to content

Instantly share code, notes, and snippets.

Created April 25, 2022 17:39
What would you like to do?
Get the CA for curl
# 1 get the cert
echo quit | openssl s_client -showcerts -servername server -connect >
# 2 use it in curl command to test it
curl --cacert
# 3 add it to your certificates store (Debian)
sudo mv /usr/share/ca-certificates/
# 4 update the store
sudo dpkg-reconfigure ca-certificates
# 4 bis
sudo update-ca-certificates --fresh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment