Skip to main content

Certbot DNS plugin for Hostinger

Project description

Certbot DNS Plugin for Hostinger

PyPI version Python versions License Certbot version Downloads

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:

  1. Log in to your Hostinger account
  2. Go to https://hpanel.hostinger.com/domains
  3. Navigate to API section
  4. 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:

  1. API token is correct and has proper permissions
  2. Domain is managed by Hostinger
  3. Credentials file is readable and secure
  4. Network connectivity to Hostinger API

For more information, see the Certbot documentation.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

certbot_dns_hostinger-0.1.3.tar.gz (77.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

certbot_dns_hostinger-0.1.3-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file certbot_dns_hostinger-0.1.3.tar.gz.

File metadata

  • Download URL: certbot_dns_hostinger-0.1.3.tar.gz
  • Upload date:
  • Size: 77.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for certbot_dns_hostinger-0.1.3.tar.gz
Algorithm Hash digest
SHA256 489b07325de00d76d8ae721ba47a8d9468537c033173015cd1e5c39629eda2fb
MD5 78dc76163416fdef24f06a904d9a70ec
BLAKE2b-256 b7d5ba6e804d96af054f9303ee622b1c4badb472a71bde76a9917e59ad4d2173

See more details on using hashes here.

Provenance

The following attestation bundles were made for certbot_dns_hostinger-0.1.3.tar.gz:

Publisher: publish.yml on BackBenchDevs/certbot-dns-hostinger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file certbot_dns_hostinger-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for certbot_dns_hostinger-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 71e7c78dfa26bde29912855bb00910d3a0bc6037f456aa312e6f22da7b4a3e99
MD5 a383b13350b0e5eff2ad2c9782eccba9
BLAKE2b-256 5fa5505a6ea0c3def2bd3d2929b704db2cbb50a73c13be0992099657cfaedc3c

See more details on using hashes here.

Provenance

The following attestation bundles were made for certbot_dns_hostinger-0.1.3-py3-none-any.whl:

Publisher: publish.yml on BackBenchDevs/certbot-dns-hostinger

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page