Files

44 lines
813 B
Markdown
Raw Permalink Normal View History

2018-09-13 20:58:28 +08:00
# DNSPod DNS Authenticator plugin for Certbot
A certbot dns plugin to obtain certificates using dnspod.
## Obtain API Token
[https://www.dnspod.cn/console/user/security](https://www.dnspod.cn/console/user/security)
## Install
2021-12-19 21:50:20 +08:00
Pip:
2018-09-13 20:58:28 +08:00
```bash
2021-12-19 21:50:20 +08:00
sudo pip install git+https://github.com/tengattack/certbot-dns-dnspod.git
2018-09-13 20:58:28 +08:00
```
2021-12-19 21:50:20 +08:00
Snap:
2018-09-13 20:58:28 +08:00
```bash
2021-12-19 21:50:20 +08:00
sudo snap install certbot-dns-dnspod
sudo snap set certbot trust-plugin-with-root=ok
sudo snap connect certbot:plugin certbot-dns-dnspod
2018-09-13 20:58:28 +08:00
```
## Credentials File
```ini
2021-12-19 21:50:20 +08:00
dns_dnspod_api_id = 12345
dns_dnspod_api_token = 1234567890abcdef1234567890abcdef
2018-09-13 20:58:28 +08:00
```
```bash
chmod 600 /path/to/credentials.ini
```
## Obtain Certificates
```bash
2021-12-19 21:50:20 +08:00
certbot certonly -a dns-dnspod \
--dns-dnspod-credentials /path/to/credentials.ini \
2018-09-13 20:58:28 +08:00
-d example.com \
-d "*.example.com"
```