mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 19:42:02 +02:00
Add rtype docs
This commit is contained in:
+10
-2
@@ -343,13 +343,21 @@ class TLSSNI01Response(KeyAuthorizationChallengeResponse):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def z(self):
|
def z(self):
|
||||||
"""``z`` value used for verification."""
|
"""``z`` value used for verification.
|
||||||
|
|
||||||
|
:rtype bytes:
|
||||||
|
|
||||||
|
"""
|
||||||
return hashlib.sha256(
|
return hashlib.sha256(
|
||||||
self.key_authorization.encode("utf-8")).hexdigest().lower().encode()
|
self.key_authorization.encode("utf-8")).hexdigest().lower().encode()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def z_domain(self):
|
def z_domain(self):
|
||||||
"""Domain name used for verification, generated from `z`."""
|
"""Domain name used for verification, generated from `z`.
|
||||||
|
|
||||||
|
:rtype bytes:
|
||||||
|
|
||||||
|
"""
|
||||||
return self.z[:32] + b'.' + self.z[32:] + self.DOMAIN_SUFFIX
|
return self.z[:32] + b'.' + self.z[32:] + self.DOMAIN_SUFFIX
|
||||||
|
|
||||||
def gen_cert(self, key=None, bits=2048):
|
def gen_cert(self, key=None, bits=2048):
|
||||||
|
|||||||
Reference in New Issue
Block a user