user9443103
user9443103

Reputation: 61

Certbot - Could not find a suitable TLS CA certificate bundle [Archlinux]

I'am trying to generate certificate from Let's Encrypt It over certbot (package ver. 0.21.1.-1), but i'am getting error. I'am using webroot module.

OSError: Could not find a suitable TLS CA certificate bundle, invalid path: /etc/ssl/certs/ca-certificates.crt

I don't have there file with this filename. Should i generate it, download?

Upvotes: 5

Views: 22721

Answers (5)

kyo berthold
kyo berthold

Reputation: 1

It happens because the original ca-certificates.crt file is missing.

In my case, I removed it when adding a new certificate file containing my website.com as a CN (Common Name). Fortunately, I had a backup copy of that file.

If you have that file, just put it again in the directory:

/etc/ssl/certs/ca-certificates.crt

Or try to add a new one with the same name.

Upvotes: 0

Judge
Judge

Reputation: 689

For me, update-ca-trust did the trick.

Upvotes: 0

Mike
Mike

Reputation: 131

Maybe /etc/ssl/certs/ca-certificates.crt is not exist.

Try running sudo update-ca-certificates to create it.

Upvotes: 13

Aethalides
Aethalides

Reputation: 417

I ended up doing cd /etc/ssl/certs followed by cat *.pem >> ca-certificates.crt

Not the most elegant solution and you'll have to delete the file and redo it every time the ca-certificates package (or its dependents) update...

Upvotes: 3

Nico Haase
Nico Haase

Reputation: 12130

Try running sudo pacman -S ca-certificates to install the core certificates

Upvotes: 1

Related Questions