Browse Source

renamed to certbot-pdns

tags/v1.0.0
Robin Thoni 7 years ago
parent
commit
b50fcaf385

+ 0
- 1
certbot_dns/__init__.py View File

1
-"""Let's Encrypt DNS plugin"""

certbot_dns/PdnsApiAuthenticator.py → certbot_pdns/PdnsApiAuthenticator.py View File

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

+ 1
- 0
certbot_pdns/__init__.py View File

1
+"""Let's Encrypt PDNS plugin"""

certbot_dns/authenticator.py → certbot_pdns/authenticator.py View File

7
 from certbot import interfaces
7
 from certbot import interfaces
8
 from certbot.plugins import common
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
 logger = logging.getLogger(__name__)
12
 logger = logging.getLogger(__name__)
13
 
13
 
15
 @zope.interface.implementer(interfaces.IAuthenticator)
15
 @zope.interface.implementer(interfaces.IAuthenticator)
16
 @zope.interface.provider(interfaces.IPluginFactory)
16
 @zope.interface.provider(interfaces.IPluginFactory)
17
 class Authenticator(common.Plugin):
17
 class Authenticator(common.Plugin):
18
-    """DNS Authenticator."""
18
+    """PDNS Authenticator."""
19
 
19
 
20
     description = "Place challenges in DNS records"
20
     description = "Place challenges in DNS records"
21
 
21
 
22
     MORE_INFO = """\
22
     MORE_INFO = """\
23
 Authenticator plugin that performs dns-01 challenge by saving
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
 It expects that there is some other DNS server configured
25
 It expects that there is some other DNS server configured
26
 to serve all records."""
26
 to serve all records."""
27
 
27
 
32
 
32
 
33
     @classmethod
33
     @classmethod
34
     def add_parser_arguments(cls, add):
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
     def get_chall_pref(self, domain):  # pragma: no cover
38
     def get_chall_pref(self, domain):  # pragma: no cover
39
         # pylint: disable=missing-docstring,no-self-use,unused-argument
39
         # pylint: disable=missing-docstring,no-self-use,unused-argument
46
 
46
 
47
     def prepare(self):  # pylint: disable=missing-docstring
47
     def prepare(self):  # pylint: disable=missing-docstring
48
         self.backend = PdnsApiAuthenticator()
48
         self.backend = PdnsApiAuthenticator()
49
-        conf_path = self.conf("certbot-dns-config")
49
+        conf_path = self.conf("certbot-pdns-config")
50
         self.backend.prepare(conf_path)
50
         self.backend.prepare(conf_path)
51
         pass
51
         pass
52
 
52
 

certbot_dns/pdnsapi.py → certbot_pdns/pdnsapi.py View File


+ 0
- 8
install View File

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 View File

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

Loading…
Cancel
Save