OXIESEC PANEL
- Current Dir:
/
/
snap
/
certbot
/
4737
/
lib
/
python3.12
/
site-packages
/
certbot
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
06/12/2025 06:19:50 PM
rwxr-xr-x
📄
__init__.py
113 bytes
06/12/2025 06:19:38 PM
rw-r--r--
📁
__pycache__
-
06/12/2025 06:19:48 PM
rwxr-xr-x
📁
_internal
-
06/12/2025 06:19:48 PM
rwxr-xr-x
📄
achallenges.py
2.06 KB
06/12/2025 06:19:38 PM
rw-r--r--
📁
compat
-
06/12/2025 06:19:48 PM
rwxr-xr-x
📄
configuration.py
18.95 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
crypto_util.py
21.39 KB
06/12/2025 06:19:38 PM
rw-r--r--
📁
display
-
06/12/2025 06:19:48 PM
rwxr-xr-x
📄
errors.py
2.72 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
interfaces.py
15.22 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
main.py
535 bytes
06/12/2025 06:19:38 PM
rw-r--r--
📄
ocsp.py
14.95 KB
06/12/2025 06:19:38 PM
rw-r--r--
📁
plugins
-
06/12/2025 06:19:48 PM
rwxr-xr-x
📄
py.typed
0 bytes
06/12/2025 06:19:38 PM
rw-r--r--
📄
reverter.py
21.5 KB
06/12/2025 06:19:38 PM
rw-r--r--
📄
ssl-dhparams.pem
424 bytes
06/12/2025 06:19:38 PM
rw-r--r--
📁
tests
-
06/12/2025 06:19:48 PM
rwxr-xr-x
📄
util.py
25.53 KB
06/12/2025 06:19:38 PM
rw-r--r--
Editing: achallenges.py
Close
"""Client annotated ACME challenges. Please use names such as ``achall`` to distinguish from variables "of type" :class:`acme.challenges.Challenge` (denoted by ``chall``) and :class:`.ChallengeBody` (denoted by ``challb``):: from acme import challenges from acme import messages from certbot import achallenges chall = challenges.DNS(token='foo') challb = messages.ChallengeBody(chall=chall) achall = achallenges.DNS(chall=challb, domain='example.com') Note, that all annotated challenges act as a proxy objects:: achall.token == challb.token """ import logging from typing import Any from typing import Tuple from typing import Type import josepy as jose from acme import challenges from acme.challenges import Challenge logger = logging.getLogger(__name__) class AnnotatedChallenge(jose.ImmutableMap): """Client annotated challenge. Wraps around server provided challenge and annotates with data useful for the client. :ivar ~.challb: Wrapped `~.ChallengeBody`. """ __slots__ = ('challb',) _acme_type: Type[Challenge] = NotImplemented def __getattr__(self, name: str) -> Any: return getattr(self.challb, name) class KeyAuthorizationAnnotatedChallenge(AnnotatedChallenge): """Client annotated `KeyAuthorizationChallenge` challenge.""" __slots__ = ('challb', 'domain', 'account_key') # pylint: disable=redefined-slots-in-subclass def response_and_validation(self, *args: Any, **kwargs: Any ) -> Tuple['challenges.KeyAuthorizationChallengeResponse', Any]: """Generate response and validation.""" return self.challb.chall.response_and_validation( self.account_key, *args, **kwargs) class DNS(AnnotatedChallenge): """Client annotated "dns" ACME challenge.""" __slots__ = ('challb', 'domain') # pylint: disable=redefined-slots-in-subclass acme_type = challenges.DNS class Other(AnnotatedChallenge): """Client annotated ACME challenge of an unknown type.""" __slots__ = ('challb', 'domain') # pylint: disable=redefined-slots-in-subclass acme_type = challenges.Challenge