Files
my-vault/00_Inbox/Clippings/2023/03/Adding and trusting a Certificate Authority (CA) in Fedora – Antonio Maradiaga – Collection of things I'm interested in working on.md
T

34 lines
1.5 KiB
Markdown
Raw Normal View History

2026-01-05 13:03:55 +08:00
---
page-title: "Adding and trusting a Certificate Authority (CA) in Fedora Antonio Maradiaga Collection of things I'm interested in / working on"
url: https://ajmaradiaga.com/Adding-trusting-CA-Fedora/
date: "2023-03-30 16:40:18"
---
## Adding and trusting a Certificate Authority (CA) in Fedora
When running Citrix on Fedora, I was getting an error message similar to the following: “SSL Error 61: You have not chosen to trust Certificate Authority’”. Basically, the CA (certificate authority) cert was missing in my operating system. To fix this, we need to do the following:
1. Find the CAs certificate online.
2. Ensure that the certificate is in PEM format (if not, convert it to PEM).
3. Move the PEM file to `/etc/pki/ca-trust/source/anchors`.
4. Update the CA trust in the operating system.
In the example below, I add and trust GoDaddys root G2 certificate:
```
# Download GoDaddy - G2 root certificate
wget https://ssl-ccp.godaddy.com/repository/gdroot-g2.crt
# Convert CRT to PEM
openssl x509 -in gdroot-g2.crt -out gdroot-g2.pem -outform PEM
# Move the PEM cert and update the CA trust
sudo mv gdroot-g2.pem /etc/pki/ca-trust/source/anchors/
sudo update-ca-trust
```
### References:
- Convert CRT to PEM: https://stackoverflow.com/questions/4691699/how-to-convert-crt-to-pem
- Trusting additional CAs in Fedora: https://www.happyassassin.net/2015/01/14/trusting-additional-cas-in-fedora-rhel-centos-dont-append-to-etcpkitlscertsca-bundle-crt-or-etcpkitlscert-pem/
Written on December 3, 2019