You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Certbot报错:未找到合适的TLS CA证书包 [Archlinux]

Fixing "No suitable TLS CA certificate found" in Certbot 0.21.1-1

Hey there, let's work through this Certbot issue step by step—you don't need to generate the CA certificate package yourself; the problem is likely a missing system or Certbot-specific CA bundle. Here's what to do:

1. Check your system's existing CA certificate bundle

First, verify if your Linux system already has a valid CA certificate bundle installed. Most systems store this at /etc/ssl/certs/ca-certificates.crt. Run this command to check:

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

If the file exists, specify it directly in your Certbot command using the --tls-cert-path flag, like this:

sudo certbot certonly --webroot -w /path/to/your/webroot --tls-cert-path /etc/ssl/certs/ca-certificates.crt -d yourdomain.com

2. Install/update system CA certificates

If the bundle file doesn't exist, you need to install the system's CA certificate package. Use the command matching your distro:

  • For Debian/Ubuntu-based systems:
    sudo apt-get update && sudo apt-get install ca-certificates
    sudo update-ca-certificates
    
  • For RHEL/CentOS-based systems:
    sudo yum install ca-certificates
    sudo update-ca-trust
    

This will populate the system's CA bundle with trusted root certificates, including Let's Encrypt's.

3. Manually fetch Let's Encrypt's CA bundle (if system install doesn't work)

If the system bundle still isn't being recognized by your old Certbot version, you can manually grab Let's Encrypt's CA certificates and create a custom bundle. Run this command to pull the certificates from Let's Encrypt's ACME server:

openssl s_client -showcerts -connect acme-v02.api.letsencrypt.org:443 </dev/null | sed -n '/-----BEGIN CERTIFICATE-----/,/-----END CERTIFICATE-----/p' > letsencrypt-ca.pem

Then point Certbot to this file with:

sudo certbot certonly --webroot -w /path/to/your/webroot --tls-cert-path ./letsencrypt-ca.pem -d yourdomain.com

4. Bonus: Consider upgrading Certbot (if possible)

Your Certbot version (0.21.1-1) is quite outdated—releases after this include better handling of CA bundles and numerous bug fixes. If your environment allows it, upgrading to a newer version might prevent this issue entirely.

内容的提问来源于stack exchange,提问作者user9443103

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.05.20 07:07:31