mirror of
https://github.com/certbot/certbot.git
synced 2026-06-04 22:33:00 -04:00
- Use dnspython3 fir py3X environments.
- Fix encoding for simple_verify.
This commit is contained in:
parent
e7ce5e9f53
commit
56154f1301
2 changed files with 10 additions and 5 deletions
|
|
@ -271,8 +271,8 @@ class DNS01(KeyAuthorizationChallenge):
|
|||
:rtype: unicode
|
||||
|
||||
"""
|
||||
return jose.b64encode(hashlib.sha256(
|
||||
self.key_authorization(account_key)).digest())
|
||||
return jose.b64encode(hashlib.sha256(self.key_authorization(
|
||||
account_key).encode("utf-8")).digest()).decode()
|
||||
|
||||
def validation_domain_name(self, name):
|
||||
"""Domain name for TXT validation record.
|
||||
|
|
|
|||
|
|
@ -35,9 +35,14 @@ if sys.version_info < (2, 7, 9):
|
|||
install_requires.append('ndg-httpsclient')
|
||||
install_requires.append('pyasn1')
|
||||
|
||||
dns_extras = [
|
||||
'dnspython',
|
||||
]
|
||||
if sys.version_info < (3, 0):
|
||||
dns_extras = [
|
||||
'dnspython',
|
||||
]
|
||||
else:
|
||||
dns_extras = [
|
||||
'dnspython3',
|
||||
]
|
||||
|
||||
docs_extras = [
|
||||
'Sphinx>=1.0', # autodoc_member_order = 'bysource', autodoc_default_flags
|
||||
|
|
|
|||
Loading…
Reference in a new issue