SoldierCorp
SoldierCorp

Reputation: 7700

CentOS 7: Error with SSL without having any SSL certificate installed

I started an SSL activation process with a certificate I bought in namecheap and I followed this guide https://www.digitalocean.com/community/tutorials/how-to-create-a-self-signed-ssl-certificate-for-nginx-on-centos-7

But I stop the process since the activation took a long time and never worked and the SSL was removed and refunded from namecheap, so I removed the cerficates I created in /etc/ssl also I cleaned my nginx block with the original configuration for my website.

But now with every call using yum or composer or any external call from my website/server is displaying errors related to some missing certificates or errors with them, like these:

With yum

With composer

With a service that call to mailgun from my API

Do you have any idea? Because I researched a lot and cannot find the solution.

Upvotes: 0

Views: 9488

Answers (1)

Rich Lafferty
Rich Lafferty

Reputation: 150

It sounds like you've removed not only your certificates, but the bundle of CA root certificates that came with your operating system, and which all of the SSL clients on your system use to verify the certificates of the SSL-enabled servers they need to talk to.

On my nearby CentOS 6 box, the CA bundle is /etc/ssl/certs/ca-bundle.crt, and is from the ca-certificates package. I believe those are the same in CentOS 7. You can check for missing files with rpm -V ca-certificates, which

If that's the case and you've accidentally removed your CA bundle, you can restore it with

rpm -Uvh --replacepkgs http://mirror.centos.org/centos/7/updates/x86_64/Packages/ca-certificates-2017.2.11-70.1.el7_3.noarch.rpm

which will (re-)install the package that contains the CA bundle.

Upvotes: 1

Related Questions