"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "acme/acme/challenges.py" between
certbot-0.30.2.tar.gz and certbot-0.31.0.tar.gz

About: Certbot is EFF’s tool to obtain certs from Let’s Encrypt, and optionally auto-enable HTTPS on your server. It can also act as a client for any other CA that uses the ACME protocol.

challenges.py  (certbot-0.30.2):challenges.py  (certbot-0.31.0)
skipping to change at line 501 skipping to change at line 501
:param JWK account_key: :param JWK account_key:
:param OpenSSL.crypto.PKey cert_key: Optional private key used :param OpenSSL.crypto.PKey cert_key: Optional private key used
in certificate generation. If not provided (``None``), then in certificate generation. If not provided (``None``), then
fresh key will be generated. fresh key will be generated.
:rtype: `tuple` of `OpenSSL.crypto.X509` and `OpenSSL.crypto.PKey` :rtype: `tuple` of `OpenSSL.crypto.X509` and `OpenSSL.crypto.PKey`
""" """
return self.response(account_key).gen_cert(key=kwargs.get('cert_key')) return self.response(account_key).gen_cert(key=kwargs.get('cert_key'))
@ChallengeResponse.register
class TLSALPN01Response(KeyAuthorizationChallengeResponse):
"""ACME TLS-ALPN-01 challenge response.
This class only allows initiating a TLS-ALPN-01 challenge returned from the
CA. Full support for responding to TLS-ALPN-01 challenges by generating and
serving the expected response certificate is not currently provided.
"""
typ = "tls-alpn-01"
@Challenge.register # pylint: disable=too-many-ancestors @Challenge.register # pylint: disable=too-many-ancestors
class TLSALPN01(KeyAuthorizationChallenge): class TLSALPN01(KeyAuthorizationChallenge):
"""ACME tls-alpn-01 challenge. """ACME tls-alpn-01 challenge.
This class simply allows parsing the TLS-ALPN-01 challenge returned from This class simply allows parsing the TLS-ALPN-01 challenge returned from
the CA. Full TLS-ALPN-01 support is not currently provided. the CA. Full TLS-ALPN-01 support is not currently provided.
""" """
typ = "tls-alpn-01" typ = "tls-alpn-01"
response_cls = TLSALPN01Response
def validation(self, account_key, **kwargs): def validation(self, account_key, **kwargs):
"""Generate validation for the challenge.""" """Generate validation for the challenge."""
raise NotImplementedError() raise NotImplementedError()
@Challenge.register # pylint: disable=too-many-ancestors @Challenge.register # pylint: disable=too-many-ancestors
class DNS(_TokenChallenge): class DNS(_TokenChallenge):
"""ACME "dns" challenge.""" """ACME "dns" challenge."""
typ = "dns" typ = "dns"
 End of changes. 2 change blocks. 
0 lines changed or deleted 11 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)