Skip to main content

Certbot DNS plugin for Hostinger

Project description

Certbot DNS Plugin for Hostinger

.. image:: https://img.shields.io/pypi/v/certbot-dns-hostinger.svg :target: https://pypi.org/project/certbot-dns-hostinger/ :alt: PyPI version

.. image:: https://img.shields.io/pypi/pyversions/certbot-dns-hostinger.svg :target: https://pypi.org/project/certbot-dns-hostinger/ :alt: Python versions

.. image:: https://img.shields.io/pypi/l/certbot-dns-hostinger.svg :target: https://github.com/BackBenchDevs/certbot-dns-hostinger/blob/main/LICENSE :alt: License

.. image:: https://img.shields.io/pypi/dm/certbot-dns-hostinger.svg :target: https://pypi.org/project/certbot-dns-hostinger/ :alt: Downloads

.. image:: https://img.shields.io/badge/certbot-%3E%3D4.2.0-blue.svg :target: https://pypi.org/project/certbot/ :alt: Certbot version

This plugin automates the process of completing a dns-01 challenge by creating, and subsequently removing, TXT records using the Hostinger API.

Installation

.. code-block:: bash

pip install certbot-dns-hostinger

Usage

.. code-block:: bash

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:

.. code-block:: ini

# /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:

.. code-block:: bash

certbot certonly \\
    --dns-hostinger \\
    --dns-hostinger-credentials ~/.secrets/certbot/hostinger.ini \\
    -d example.com \\
    -d *.example.com

Use a custom propagation delay:

.. code-block:: bash

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 <https://eff-certbot.readthedocs.io/>_.

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.0.tar.gz (40.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.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: certbot_dns_hostinger-0.1.0.tar.gz
  • Upload date:
  • Size: 40.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for certbot_dns_hostinger-0.1.0.tar.gz
Algorithm Hash digest
SHA256 6a449a0fa11a840ab907595e00b5b6704210ec2169a8b7b036cf795358e69272
MD5 2402b4397acea9b3fddc22a376168d0e
BLAKE2b-256 0be7b546df2d87a22b82534fa5d0c68d3f9cce61c506a939e191f298eebabf1f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for certbot_dns_hostinger-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 83bb73e91c5441bc5645e071d686a1fe271bcd17d5d938ec22a95dbb1d5f6f7e
MD5 86612dde11c1e245d7c32db062cfebbf
BLAKE2b-256 3f92f7ccd94a8b9188adc8f7d6a4758e865e5686011f41cd083bba188a3f978d

See more details on using hashes here.

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