Certbot DNS plugin for Hostinger
Project description
Certbot DNS Plugin for Hostinger
This plugin automates the process of completing a dns-01 challenge by creating, and subsequently removing, TXT records using the Hostinger API.
Installation
pip install certbot-dns-hostinger
Usage
certbot certonly \
--dns-hostinger \
--dns-hostinger-credentials /path/to/credentials.ini \
-d example.com
Named Arguments
--dns-hostinger-credentials PATH
- Hostinger credentials INI file. (Required)
Credentials
Create a credentials file:
# /path/to/credentials.ini
dns_hostinger_api_token = <your-api-token>
The file should be readable by the Certbot process and secure (chmod 600).
API Token
To obtain an API token:
- Log in to your Hostinger account
- Go to https://hpanel.hostinger.com/domains
- Navigate to API section
- Generate a new API token with DNS management permissions
Examples
Obtain a single certificate for all subdomains of a domain:
certbot certonly \
--dns-hostinger \
--dns-hostinger-credentials ~/.secrets/certbot/hostinger.ini \
-d example.com \
-d *.example.com
Use a custom propagation delay:
certbot certonly \
--dns-hostinger \
--dns-hostinger-credentials ~/.secrets/certbot/hostinger.ini \
--dns-hostinger-propagation-seconds 120 \
-d example.com
Troubleshooting
If you encounter any issues, check:
- API token is correct and has proper permissions
- Domain is managed by Hostinger
- Credentials file is readable and secure
- Network connectivity to Hostinger API
For more information, see the Certbot documentation.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file certbot_dns_hostinger-0.2.0.dev1.tar.gz.
File metadata
- Download URL: certbot_dns_hostinger-0.2.0.dev1.tar.gz
- Upload date:
- Size: 77.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6c45b2e73a0579bfde8c9e2d79711daddc48b8ddf982bdd8b911c9e1716112e9
|
|
| MD5 |
b90e2d0917693792a8a65c803d2396c3
|
|
| BLAKE2b-256 |
decb82806d9e028db7e8f1d807131b36efff7d6e76cc502225093d4ee266244d
|
File details
Details for the file certbot_dns_hostinger-0.2.0.dev1-py3-none-any.whl.
File metadata
- Download URL: certbot_dns_hostinger-0.2.0.dev1-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
46f350f7feb71c38b022247a7f5b1c4a218d838cb295e686371837df03fae104
|
|
| MD5 |
3e2cda1f56e5abcd5086691a21fc1ebc
|
|
| BLAKE2b-256 |
0518eaab307afee94f909e1559c3871f31f6a623e05abb0fb07b47ca6ed80114
|