PHPackages                             demokn/certbot-dns-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. demokn/certbot-dns-auth

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

demokn/certbot-dns-auth
=======================

Certbot DNS Auth

2.0.0(1y ago)06PHPPHP &gt;=8.1

Since Nov 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/demokn/certbot-dns-auth)[ Packagist](https://packagist.org/packages/demokn/certbot-dns-auth)[ RSS](/packages/demokn-certbot-dns-auth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (3)Versions (3)Used By (0)

Certbot DNS Auth
----------------

[](#certbot-dns-auth)

### 使用

[](#使用)

1. 克隆仓库到执行 `Certbot` 的机器上

```
git clone https://github.com/demokn/certbot-dns-auth
cd certbot-dns-auth
```

2. 使用 `composer` 安装依赖

```
composer install --no-dev
```

3. 复制并修改脚本文件

```
cp scripts/alidns/authenticator.sh-example scripts/alidns/authenticator.sh
cp scripts/alidns/cleanup.sh-example scripts/alidns/cleanup.sh
# 编辑文件, 填写自己阿里云的 AccessKeyID 和 AccessKeySecret
```

4. 使用 `certbot` 生成或更新证书

```
# 生成证书
certbot certonly --manual --preferred-challenges=dns --manual-auth-hook /PATH/PROJECT_ROOT/scripts/alidns/authenticator.sh --manual-cleanup-hook /PATH/PROJECT_ROOT/scripts/alidns/cleanup.sh -d *.example.com -m YOUR_EMAIL_ADDRESS --dry-run
# 更新证书
# 更新证书时会自动读取 `/etc/letsencrypt/renewal/example.com.conf` 配置文件, 故生成证书时的配置参数这里就不需要再次手动设定了
certbot renew --cert-name example.com --dry-run
```

5. 配置 `nginx`

```
ssl on;
ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;

```

### Troubleshooting

[](#troubleshooting)

#### 1. CentOS 7 安装 certbot 运行时报错 `ImportError: No module named 'requests.packages.urllib3'`

[](#1-centos-7-安装-certbot-运行时报错-importerror-no-module-named-requestspackagesurllib3)

参见: [certbot/certbot #5104](https://github.com/certbot/certbot/issues/5104)

```
pip uninstall requests
pip uninstall urllib3
yum remove python-urllib3
yum remove python-requests
yum install python-urllib3
yum install python-requests
yum install certbot
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance35

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~1732 days

Total

2

Last Release

630d ago

Major Versions

1.0.0 → 2.0.02024-08-17

PHP version history (2 changes)1.0.0PHP ^7.2

2.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/eab93aa3e3a99c1dfaca595efcc85a86c9d6574188811fade9891d8e2ed49f71?d=identicon)[demo\_knyang](/maintainers/demo_knyang)

---

Top Contributors

[![demokn](https://avatars.githubusercontent.com/u/11829894?v=4)](https://github.com/demokn "demokn (5 commits)")

### Embed Badge

![Health badge](/badges/demokn-certbot-dns-auth/health.svg)

```
[![Health](https://phpackages.com/badges/demokn-certbot-dns-auth/health.svg)](https://phpackages.com/packages/demokn-certbot-dns-auth)
```

###  Alternatives

[php-soap/wsdl

Deals with WSDLs

173.5M12](/packages/php-soap-wsdl)[phel-lang/phel-lang

Phel is a functional programming language that compiles to PHP

4743.5k10](/packages/phel-lang-phel-lang)[symfony/ai-bundle

Integration bundle for Symfony AI components

30282.3k6](/packages/symfony-ai-bundle)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
