https://github.com/fishy/certbot-dns-porkbun
Porkbun Certbot DNS plugin in Go.
https://github.com/fishy/certbot-dns-porkbun
Last synced: 30 days ago
JSON representation
Porkbun Certbot DNS plugin in Go.
- Host: GitHub
- URL: https://github.com/fishy/certbot-dns-porkbun
- Owner: fishy
- License: bsd-3-clause
- Created: 2023-09-18T14:32:59.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-19T17:28:29.000Z (5 months ago)
- Last Synced: 2025-05-07T21:05:16.628Z (30 days ago)
- Language: Go
- Size: 5.86 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# certbot-dns-porkbun
[Porkbun][porkbun] [Certbot][certbot] DNS plugin in Go.
## Usage
Run go compiler to get the linux binary (requires go 1.21+):
```sh
GOOS=linux GOARCH=amd64 go build -trimpath .
```Copy `certbot-dns-porkbun` along with the 2 bash scripts (`authenticator.sh` and
`clenaup.sh`) to the same directory of your server (I usually put them under
`/etc/letsencrypt/porkbun`)Edit the shell scripts on your server and replace the porkbun api and secret
keys.Run certbot with:
```
sudo certbot certonly \
-n \
--agree-tos \
--email \
--manual \
--preferred-challenges=dns \
--manual-auth-hook /path/to/authenticator.sh \
--manual-cleanup-hook /path/to/cleanup.sh \
-d yourdomain.com \
-d *.yourdomain.com
```[porkbun]: https://porkbun.com/
[certbot]: https://certbot.eff.org/