summaryrefslogtreecommitdiff
path: root/python-certbot-dns-hetzner.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-06-20 06:18:35 +0000
committerCoprDistGit <infra@openeuler.org>2023-06-20 06:18:35 +0000
commit9d9fd0732d4857ac3fd2c473d2e1c7361b4f4e2c (patch)
treec02e74f248578f68f1e2f04d259b12df41311ff7 /python-certbot-dns-hetzner.spec
parent299497fb0390a1699b75012d9dfe30456cb50f5d (diff)
automatic import of python-certbot-dns-hetzneropeneuler20.03
Diffstat (limited to 'python-certbot-dns-hetzner.spec')
-rw-r--r--python-certbot-dns-hetzner.spec273
1 files changed, 273 insertions, 0 deletions
diff --git a/python-certbot-dns-hetzner.spec b/python-certbot-dns-hetzner.spec
new file mode 100644
index 0000000..6281e43
--- /dev/null
+++ b/python-certbot-dns-hetzner.spec
@@ -0,0 +1,273 @@
+%global _empty_manifest_terminate_build 0
+Name: python-certbot-dns-hetzner
+Version: 2.0.0
+Release: 1
+Summary: Hetzner DNS Authenticator plugin for Certbot
+License: Apache License 2.0
+URL: https://github.com/ctrlaltcoop/certbot-dns-hetzner
+Source0: https://mirrors.aliyun.com/pypi/web/packages/d7/4a/5b8f6b21f572f97d4b17d71696231a5d0315861a19e823e64c09dfa98871/certbot-dns-hetzner-2.0.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-certbot
+Requires: python3-setuptools
+Requires: python3-requests
+Requires: python3-requests-mock
+Requires: python3-dns-lexicon
+Requires: python3-parsedatetime
+
+%description
+# Hetzner DNS Authenticator certbot plugin
+[![codecov](https://codecov.io/gh/ctrlaltcoop/certbot-dns-hetzner/branch/master/graph/badge.svg)](https://codecov.io/gh/ctrlaltcoop/certbot-dns-hetzner)
+![Tests, Coverage](https://github.com/ctrlaltcoop/certbot-dns-hetzner/workflows/Tests,%20Coverage/badge.svg?branch=master)
+[![PyPI version](https://badge.fury.io/py/certbot-dns-hetzner.svg)](https://badge.fury.io/py/certbot-dns-hetzner)
+![Supported Python](https://img.shields.io/pypi/pyversions/certbot-dns-hetzner)
+
+This certbot plugin automates the process of
+completing a dns-01 challenge by creating, and
+subsequently removing, TXT records using the Hetzner DNS API.
+
+## Requirements
+
+### For certbot < 2
+
+Notice that this plugin is only supporting certbot>=2.0 from 2.0 onwards. For older certbot versions use 1.x releases.
+
+## Install
+
+Install this package via pip in the same python environment where you installed your certbot.
+
+```
+pip install certbot-dns-hetzner
+```
+
+## Usage
+
+To start using DNS authentication for the Hetzner DNS API, pass the following arguments on certbot's command line:
+
+| Option | Description |
+|------------------------------------------------------------|--------------------------------------------------|
+| `--authenticator dns-hetzner` | select the authenticator plugin (Required) |
+| `--dns-hetzner-credentials` | Hetzner DNS API credentials INI file. (Required) |
+| `--dns-hetzner-propagation-seconds` | Seconds to wait for the TXT record to propagate |
+
+## Credentials
+
+
+From the hetzner DNS control panel at https://dns.hetzner.com go to "API Tokens" and add a personal access token.
+
+An example ``credentials.ini`` file:
+
+```ini
+dns_hetzner_api_token = nohnah4zoo9Kiejee9aGh0thoopee2sa
+```
+## Examples
+To acquire a certificate for `example.com`
+```shell script
+certbot certonly \\
+ --authenticator dns-hetzner \\
+ --dns-hetzner-credentials /path/to/my/hetzner.ini \\
+ -d example.com
+```
+
+To acquire a certificate for ``*.example.com``
+```shell script
+ certbot certonly \\
+ --authenticator dns-hetzner \\
+ --dns-hetzner-credentials /path/to/my/hetzner.ini \\
+ -d '*.example.com'
+```
+
+## Thanks to
+
+Of course certbot, which examples and documentation I used to implement this plugin. And to https://github.com/m42e/certbot-dns-ispconfig which served as an excellent example and README template as well.
+
+
+
+%package -n python3-certbot-dns-hetzner
+Summary: Hetzner DNS Authenticator plugin for Certbot
+Provides: python-certbot-dns-hetzner
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-certbot-dns-hetzner
+# Hetzner DNS Authenticator certbot plugin
+[![codecov](https://codecov.io/gh/ctrlaltcoop/certbot-dns-hetzner/branch/master/graph/badge.svg)](https://codecov.io/gh/ctrlaltcoop/certbot-dns-hetzner)
+![Tests, Coverage](https://github.com/ctrlaltcoop/certbot-dns-hetzner/workflows/Tests,%20Coverage/badge.svg?branch=master)
+[![PyPI version](https://badge.fury.io/py/certbot-dns-hetzner.svg)](https://badge.fury.io/py/certbot-dns-hetzner)
+![Supported Python](https://img.shields.io/pypi/pyversions/certbot-dns-hetzner)
+
+This certbot plugin automates the process of
+completing a dns-01 challenge by creating, and
+subsequently removing, TXT records using the Hetzner DNS API.
+
+## Requirements
+
+### For certbot < 2
+
+Notice that this plugin is only supporting certbot>=2.0 from 2.0 onwards. For older certbot versions use 1.x releases.
+
+## Install
+
+Install this package via pip in the same python environment where you installed your certbot.
+
+```
+pip install certbot-dns-hetzner
+```
+
+## Usage
+
+To start using DNS authentication for the Hetzner DNS API, pass the following arguments on certbot's command line:
+
+| Option | Description |
+|------------------------------------------------------------|--------------------------------------------------|
+| `--authenticator dns-hetzner` | select the authenticator plugin (Required) |
+| `--dns-hetzner-credentials` | Hetzner DNS API credentials INI file. (Required) |
+| `--dns-hetzner-propagation-seconds` | Seconds to wait for the TXT record to propagate |
+
+## Credentials
+
+
+From the hetzner DNS control panel at https://dns.hetzner.com go to "API Tokens" and add a personal access token.
+
+An example ``credentials.ini`` file:
+
+```ini
+dns_hetzner_api_token = nohnah4zoo9Kiejee9aGh0thoopee2sa
+```
+## Examples
+To acquire a certificate for `example.com`
+```shell script
+certbot certonly \\
+ --authenticator dns-hetzner \\
+ --dns-hetzner-credentials /path/to/my/hetzner.ini \\
+ -d example.com
+```
+
+To acquire a certificate for ``*.example.com``
+```shell script
+ certbot certonly \\
+ --authenticator dns-hetzner \\
+ --dns-hetzner-credentials /path/to/my/hetzner.ini \\
+ -d '*.example.com'
+```
+
+## Thanks to
+
+Of course certbot, which examples and documentation I used to implement this plugin. And to https://github.com/m42e/certbot-dns-ispconfig which served as an excellent example and README template as well.
+
+
+
+%package help
+Summary: Development documents and examples for certbot-dns-hetzner
+Provides: python3-certbot-dns-hetzner-doc
+%description help
+# Hetzner DNS Authenticator certbot plugin
+[![codecov](https://codecov.io/gh/ctrlaltcoop/certbot-dns-hetzner/branch/master/graph/badge.svg)](https://codecov.io/gh/ctrlaltcoop/certbot-dns-hetzner)
+![Tests, Coverage](https://github.com/ctrlaltcoop/certbot-dns-hetzner/workflows/Tests,%20Coverage/badge.svg?branch=master)
+[![PyPI version](https://badge.fury.io/py/certbot-dns-hetzner.svg)](https://badge.fury.io/py/certbot-dns-hetzner)
+![Supported Python](https://img.shields.io/pypi/pyversions/certbot-dns-hetzner)
+
+This certbot plugin automates the process of
+completing a dns-01 challenge by creating, and
+subsequently removing, TXT records using the Hetzner DNS API.
+
+## Requirements
+
+### For certbot < 2
+
+Notice that this plugin is only supporting certbot>=2.0 from 2.0 onwards. For older certbot versions use 1.x releases.
+
+## Install
+
+Install this package via pip in the same python environment where you installed your certbot.
+
+```
+pip install certbot-dns-hetzner
+```
+
+## Usage
+
+To start using DNS authentication for the Hetzner DNS API, pass the following arguments on certbot's command line:
+
+| Option | Description |
+|------------------------------------------------------------|--------------------------------------------------|
+| `--authenticator dns-hetzner` | select the authenticator plugin (Required) |
+| `--dns-hetzner-credentials` | Hetzner DNS API credentials INI file. (Required) |
+| `--dns-hetzner-propagation-seconds` | Seconds to wait for the TXT record to propagate |
+
+## Credentials
+
+
+From the hetzner DNS control panel at https://dns.hetzner.com go to "API Tokens" and add a personal access token.
+
+An example ``credentials.ini`` file:
+
+```ini
+dns_hetzner_api_token = nohnah4zoo9Kiejee9aGh0thoopee2sa
+```
+## Examples
+To acquire a certificate for `example.com`
+```shell script
+certbot certonly \\
+ --authenticator dns-hetzner \\
+ --dns-hetzner-credentials /path/to/my/hetzner.ini \\
+ -d example.com
+```
+
+To acquire a certificate for ``*.example.com``
+```shell script
+ certbot certonly \\
+ --authenticator dns-hetzner \\
+ --dns-hetzner-credentials /path/to/my/hetzner.ini \\
+ -d '*.example.com'
+```
+
+## Thanks to
+
+Of course certbot, which examples and documentation I used to implement this plugin. And to https://github.com/m42e/certbot-dns-ispconfig which served as an excellent example and README template as well.
+
+
+
+%prep
+%autosetup -n certbot-dns-hetzner-2.0.0
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "\"/%h/%f\"\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "\"/%h/%f.gz\"\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-certbot-dns-hetzner -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 2.0.0-1
+- Package Spec generated