certbot-dns-ispconfig


Namecertbot-dns-ispconfig JSON
Version 0.3.0 PyPI version JSON
download
home_pageNone
Summaryispconfig DNS Authenticator plugin for Certbot
upload_time2024-08-29 15:25:05
maintainerNone
docs_urlNone
authorNone
requires_pythonNone
licenseApache-2.0
keywords authenticator certbot dns ispconfig plugin
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            certbot-dns-ispconfig
=====================

ISPConfig_ DNS Authenticator plugin for Certbot

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

Configuration of ISPConfig
---------------------------

In the `System -> Remote Users` you have to have a user, with the following rights

- Client Functions
- DNS zone functions
- DNS txt functions


.. _ISPConfig: https://www.ispconfig.org/
.. _certbot: https://certbot.eff.org/

Installation
------------

::

    pip install certbot-dns-ispconfig


Named Arguments
---------------

To start using DNS authentication for ispconfig, pass the following arguments on
certbot's command line:

============================================================= ==============================================
``--authenticator certbot-dns-ispconfig:dns-ispconfig``          select the authenticator plugin (Required)

``--certbot-dns-ispconfig:dns-ispconfig-credentials``         ispconfig Remote User credentials
                                                              INI file. (Required)

``--certbot-dns-ispconfig:dns-ispconfig-propagation-seconds`` | waiting time for DNS to propagate before asking
                                                              | the ACME server to verify the DNS record.
                                                              | (Default: 120, Recommended: >= 600)
============================================================= ==============================================

(Note that the verbose and seemingly redundant ``certbot-dns-ispconfig:`` prefix
is currently imposed by certbot for external plugins.)


Credentials
-----------

An example ``credentials.ini`` file:

.. code-block:: ini

   certbot_dns_ispconfig:dns_ispconfig_username = myremoteuser
   certbot_dns_ispconfig:dns_ispconfig_password = verysecureremoteuserpassword
   certbot_dns_ispconfig:dns_ispconfig_endpoint = https://you.ipsconfig.host:8080/remote/json.php

The path to this file can be provided interactively or using the
``--certbot-dns-ispconfig:dns-ispconfig-credentials`` command-line argument. Certbot
records the path to this file for use during renewal, but does not store the
file's contents.

**CAUTION:** You should protect these API credentials as you would the
password to your ispconfig account. Users who can read this file can use these
credentials to issue arbitrary API calls on your behalf. Users who can cause
Certbot to run using these credentials can complete a ``dns-01`` challenge to
acquire new certificates or revoke existing certificates for associated
domains, even if those domains aren't being managed by this server.

Certbot will emit a warning if it detects that the credentials file can be
accessed by other users on your system. The warning reads "Unsafe permissions
on credentials configuration file", followed by the path to the credentials
file. This warning will be emitted each time Certbot uses the credentials file,
including for renewal, and cannot be silenced except by addressing the issue
(e.g., by using a command like ``chmod 600`` to restrict access to the file).


Examples
--------

To acquire a single certificate for both ``example.com`` and
``*.example.com``, waiting 900 seconds for DNS propagation:

.. code-block:: bash

   certbot certonly \
     --authenticator certbot-dns-ispconfig:dns-ispconfig \
     --certbot-dns-ispconfig:dns-ispconfig-credentials /etc/letsencrypt/.secrets/domain.tld.ini \
     --certbot-dns-ispconfig:dns-ispconfig-propagation-seconds 900 \
     --server https://acme-v02.api.letsencrypt.org/directory \
     --agree-tos \
     --rsa-key-size 4096 \
     -d 'example.com' \
     -d '*.example.com'


Docker
------

In order to create a docker container with a certbot-dns-ispconfig installation,
create an empty directory with the following ``Dockerfile``:

.. code-block:: docker

    FROM certbot/certbot
    RUN pip install certbot-dns-ispconfig

Proceed to build the image::

    docker build -t certbot/dns-ispconfig .

Once that's finished, the application can be run as follows::

    docker run --rm \
       -v /var/lib/letsencrypt:/var/lib/letsencrypt \
       -v /etc/letsencrypt:/etc/letsencrypt \
       --cap-drop=all \
       certbot/dns-ispconfig certonly \
       --authenticator certbot-dns-ispconfig:dns-ispconfig \
       --certbot-dns-ispconfig:dns-ispconfig-propagation-seconds 900 \
       --certbot-dns-ispconfig:dns-ispconfig-credentials \
           /etc/letsencrypt/.secrets/domain.tld.ini \
       --no-self-upgrade \
       --keep-until-expiring --non-interactive --expand \
       --server https://acme-v02.api.letsencrypt.org/directory \
       -d example.com -d '*.example.com'

It is suggested to secure the folder as follows::
chown root:root /etc/letsencrypt/.secrets
chmod 600 /etc/letsencrypt/.secrets

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "certbot-dns-ispconfig",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "authenticator, certbot, dns, ispconfig, plugin",
    "author": null,
    "author_email": "Matthias Bilger <matthias@bilger.info>",
    "download_url": "https://files.pythonhosted.org/packages/60/e9/8258b3d656d2654ea5a27bad277894f7aa97708211d4d8317a9891aedf23/certbot_dns_ispconfig-0.3.0.tar.gz",
    "platform": null,
    "description": "certbot-dns-ispconfig\n=====================\n\nISPConfig_ DNS Authenticator plugin for Certbot\n\nThis plugin automates the process of completing a ``dns-01`` challenge by\ncreating, and subsequently removing, TXT records using the ISPConfig Remote API.\n\nConfiguration of ISPConfig\n---------------------------\n\nIn the `System -> Remote Users` you have to have a user, with the following rights\n\n- Client Functions\n- DNS zone functions\n- DNS txt functions\n\n\n.. _ISPConfig: https://www.ispconfig.org/\n.. _certbot: https://certbot.eff.org/\n\nInstallation\n------------\n\n::\n\n    pip install certbot-dns-ispconfig\n\n\nNamed Arguments\n---------------\n\nTo start using DNS authentication for ispconfig, pass the following arguments on\ncertbot's command line:\n\n============================================================= ==============================================\n``--authenticator certbot-dns-ispconfig:dns-ispconfig``          select the authenticator plugin (Required)\n\n``--certbot-dns-ispconfig:dns-ispconfig-credentials``         ispconfig Remote User credentials\n                                                              INI file. (Required)\n\n``--certbot-dns-ispconfig:dns-ispconfig-propagation-seconds`` | waiting time for DNS to propagate before asking\n                                                              | the ACME server to verify the DNS record.\n                                                              | (Default: 120, Recommended: >= 600)\n============================================================= ==============================================\n\n(Note that the verbose and seemingly redundant ``certbot-dns-ispconfig:`` prefix\nis currently imposed by certbot for external plugins.)\n\n\nCredentials\n-----------\n\nAn example ``credentials.ini`` file:\n\n.. code-block:: ini\n\n   certbot_dns_ispconfig:dns_ispconfig_username = myremoteuser\n   certbot_dns_ispconfig:dns_ispconfig_password = verysecureremoteuserpassword\n   certbot_dns_ispconfig:dns_ispconfig_endpoint = https://you.ipsconfig.host:8080/remote/json.php\n\nThe path to this file can be provided interactively or using the\n``--certbot-dns-ispconfig:dns-ispconfig-credentials`` command-line argument. Certbot\nrecords the path to this file for use during renewal, but does not store the\nfile's contents.\n\n**CAUTION:** You should protect these API credentials as you would the\npassword to your ispconfig account. Users who can read this file can use these\ncredentials to issue arbitrary API calls on your behalf. Users who can cause\nCertbot to run using these credentials can complete a ``dns-01`` challenge to\nacquire new certificates or revoke existing certificates for associated\ndomains, even if those domains aren't being managed by this server.\n\nCertbot will emit a warning if it detects that the credentials file can be\naccessed by other users on your system. The warning reads \"Unsafe permissions\non credentials configuration file\", followed by the path to the credentials\nfile. This warning will be emitted each time Certbot uses the credentials file,\nincluding for renewal, and cannot be silenced except by addressing the issue\n(e.g., by using a command like ``chmod 600`` to restrict access to the file).\n\n\nExamples\n--------\n\nTo acquire a single certificate for both ``example.com`` and\n``*.example.com``, waiting 900 seconds for DNS propagation:\n\n.. code-block:: bash\n\n   certbot certonly \\\n     --authenticator certbot-dns-ispconfig:dns-ispconfig \\\n     --certbot-dns-ispconfig:dns-ispconfig-credentials /etc/letsencrypt/.secrets/domain.tld.ini \\\n     --certbot-dns-ispconfig:dns-ispconfig-propagation-seconds 900 \\\n     --server https://acme-v02.api.letsencrypt.org/directory \\\n     --agree-tos \\\n     --rsa-key-size 4096 \\\n     -d 'example.com' \\\n     -d '*.example.com'\n\n\nDocker\n------\n\nIn order to create a docker container with a certbot-dns-ispconfig installation,\ncreate an empty directory with the following ``Dockerfile``:\n\n.. code-block:: docker\n\n    FROM certbot/certbot\n    RUN pip install certbot-dns-ispconfig\n\nProceed to build the image::\n\n    docker build -t certbot/dns-ispconfig .\n\nOnce that's finished, the application can be run as follows::\n\n    docker run --rm \\\n       -v /var/lib/letsencrypt:/var/lib/letsencrypt \\\n       -v /etc/letsencrypt:/etc/letsencrypt \\\n       --cap-drop=all \\\n       certbot/dns-ispconfig certonly \\\n       --authenticator certbot-dns-ispconfig:dns-ispconfig \\\n       --certbot-dns-ispconfig:dns-ispconfig-propagation-seconds 900 \\\n       --certbot-dns-ispconfig:dns-ispconfig-credentials \\\n           /etc/letsencrypt/.secrets/domain.tld.ini \\\n       --no-self-upgrade \\\n       --keep-until-expiring --non-interactive --expand \\\n       --server https://acme-v02.api.letsencrypt.org/directory \\\n       -d example.com -d '*.example.com'\n\nIt is suggested to secure the folder as follows::\nchown root:root /etc/letsencrypt/.secrets\nchmod 600 /etc/letsencrypt/.secrets\n",
    "bugtrack_url": null,
    "license": "Apache-2.0",
    "summary": "ispconfig DNS Authenticator plugin for Certbot",
    "version": "0.3.0",
    "project_urls": null,
    "split_keywords": [
        "authenticator",
        " certbot",
        " dns",
        " ispconfig",
        " plugin"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "12eb3f29018480b9ce00b2ae2bbd456c64ba534771ffca2f560c828f3f373266",
                "md5": "1883ad0434744b50e92486a301610a1f",
                "sha256": "c92e0aee1323b799eba794ede005fdc12cbbada495c8cb8be0bd00bd215025c2"
            },
            "downloads": -1,
            "filename": "certbot_dns_ispconfig-0.3.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1883ad0434744b50e92486a301610a1f",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": null,
            "size": 12347,
            "upload_time": "2024-08-29T15:25:03",
            "upload_time_iso_8601": "2024-08-29T15:25:03.403444Z",
            "url": "https://files.pythonhosted.org/packages/12/eb/3f29018480b9ce00b2ae2bbd456c64ba534771ffca2f560c828f3f373266/certbot_dns_ispconfig-0.3.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "60e98258b3d656d2654ea5a27bad277894f7aa97708211d4d8317a9891aedf23",
                "md5": "ba9b8cea33cff0e78a58b0f1ec992f5f",
                "sha256": "8ecbedb0dbeb45bdb5c9d65297c4b74d7ce534fd04218b6b33b3746c979cbac7"
            },
            "downloads": -1,
            "filename": "certbot_dns_ispconfig-0.3.0.tar.gz",
            "has_sig": false,
            "md5_digest": "ba9b8cea33cff0e78a58b0f1ec992f5f",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 26679,
            "upload_time": "2024-08-29T15:25:05",
            "upload_time_iso_8601": "2024-08-29T15:25:05.226135Z",
            "url": "https://files.pythonhosted.org/packages/60/e9/8258b3d656d2654ea5a27bad277894f7aa97708211d4d8317a9891aedf23/certbot_dns_ispconfig-0.3.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-29 15:25:05",
    "github": false,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "lcname": "certbot-dns-ispconfig"
}
        
Elapsed time: 1.97947s