Преглед изворни кода

renamed to certbot-pdns

tags/v1.0.0
Robin Thoni пре 7 година
родитељ
комит
b50fcaf385

+ 0
- 1
certbot_dns/__init__.py Прегледај датотеку

@@ -1 +0,0 @@
1
-"""Let's Encrypt DNS plugin"""

certbot_dns/PdnsApiAuthenticator.py → certbot_pdns/PdnsApiAuthenticator.py Прегледај датотеку

@@ -5,7 +5,7 @@ import logging
5 5
 import time
6 6
 from certbot import errors
7 7
 
8
-from certbot_dns.pdnsapi import PdnsApi
8
+from certbot_pdns.pdnsapi import PdnsApi
9 9
 
10 10
 logger = logging.getLogger(__name__)
11 11
 

+ 1
- 0
certbot_pdns/__init__.py Прегледај датотеку

@@ -0,0 +1 @@
1
+"""Let's Encrypt PDNS plugin"""

certbot_dns/authenticator.py → certbot_pdns/authenticator.py Прегледај датотеку

@@ -7,7 +7,7 @@ from acme import challenges
7 7
 from certbot import interfaces
8 8
 from certbot.plugins import common
9 9
 
10
-from certbot_dns.PdnsApiAuthenticator import PdnsApiAuthenticator
10
+from certbot_pdns.PdnsApiAuthenticator import PdnsApiAuthenticator
11 11
 
12 12
 logger = logging.getLogger(__name__)
13 13
 
@@ -15,13 +15,13 @@ logger = logging.getLogger(__name__)
15 15
 @zope.interface.implementer(interfaces.IAuthenticator)
16 16
 @zope.interface.provider(interfaces.IPluginFactory)
17 17
 class Authenticator(common.Plugin):
18
-    """DNS Authenticator."""
18
+    """PDNS Authenticator."""
19 19
 
20 20
     description = "Place challenges in DNS records"
21 21
 
22 22
     MORE_INFO = """\
23 23
 Authenticator plugin that performs dns-01 challenge by saving
24
-necessary validation resources to appropriate records in DNS server.
24
+necessary validation resources to appropriate records in a PDNS server.
25 25
 It expects that there is some other DNS server configured
26 26
 to serve all records."""
27 27
 
@@ -32,8 +32,8 @@ to serve all records."""
32 32
 
33 33
     @classmethod
34 34
     def add_parser_arguments(cls, add):
35
-        add("certbot-dns-config", "-f", default="/etc/letsencrypt/certbot-dns.json",
36
-            help="Path to certbot-dns configuration file")
35
+        add("certbot-pdns-config", "-f", default="/etc/letsencrypt/certbot-pdns.json",
36
+            help="Path to certbot-pdns configuration file")
37 37
 
38 38
     def get_chall_pref(self, domain):  # pragma: no cover
39 39
         # pylint: disable=missing-docstring,no-self-use,unused-argument
@@ -46,7 +46,7 @@ to serve all records."""
46 46
 
47 47
     def prepare(self):  # pylint: disable=missing-docstring
48 48
         self.backend = PdnsApiAuthenticator()
49
-        conf_path = self.conf("certbot-dns-config")
49
+        conf_path = self.conf("certbot-pdns-config")
50 50
         self.backend.prepare(conf_path)
51 51
         pass
52 52
 

certbot_dns/pdnsapi.py → certbot_pdns/pdnsapi.py Прегледај датотеку


+ 0
- 8
install Прегледај датотеку

@@ -1,8 +0,0 @@
1
-#! /usr/bin/env sh
2
-
3
-dir="$(dirname $(readlink -f "${0}"))"
4
-
5
-(cd "${dir}" && python setup.py install) &&
6
-
7
-mkdir -p /etc/letsencrypt &&
8
-cp "${dir}/config.example.json" /etc/letsencrypt/certbot-dns.json

+ 3
- 3
setup.py Прегледај датотеку

@@ -10,9 +10,9 @@ install_requires = [
10 10
 ]
11 11
 
12 12
 setup(
13
-    name='certbot-dns',
13
+    name='certbot-pdns',
14 14
     description="Certbot DNS authenticator",
15
-    url='https://git.rthoni.com/robin.thoni/certbot-dns',
15
+    url='https://git.rthoni.com/robin.thoni/certbot-pdns',
16 16
     author="Robin Thoni",
17 17
     author_email='robin@rthoni.com',
18 18
     license='MIT',
@@ -20,7 +20,7 @@ setup(
20 20
     packages=find_packages(),
21 21
     entry_points={
22 22
         'certbot.plugins': [
23
-            'auth = certbot_dns.authenticator:Authenticator',
23
+            'auth = certbot_pdns.authenticator:Authenticator',
24 24
         ],
25 25
     },
26 26
 )

Loading…
Откажи
Сачувај