"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "certbot-compatibility-test/certbot_compatibility_test/validator.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.

validator.py  (certbot-0.30.2):validator.py  (certbot-0.31.0)
"""Validators to determine the current webserver configuration""" """Validators to determine the current webserver configuration"""
import logging import logging
import socket import socket
import requests import requests
import zope.interface
import six import six
from six.moves import xrange # pylint: disable=import-error,redefined-builtin from six.moves import xrange # pylint: disable=import-error,redefined-builtin
from acme import crypto_util from acme import crypto_util
from acme import errors as acme_errors from acme import errors as acme_errors
from certbot import interfaces
logger = logging.getLogger(__name__) logger = logging.getLogger(__name__)
@zope.interface.implementer(interfaces.IValidator)
class Validator(object): class Validator(object):
# pylint: disable=no-self-use # pylint: disable=no-self-use
"""Collection of functions to test a live webserver's configuration""" """Collection of functions to test a live webserver's configuration"""
def certificate(self, cert, name, alt_host=None, port=443): def certificate(self, cert, name, alt_host=None, port=443):
"""Verifies the certificate presented at name is cert""" """Verifies the certificate presented at name is cert"""
if alt_host is None: if alt_host is None:
host = socket.gethostbyname(name) host = socket.gethostbyname(name)
elif isinstance(alt_host, six.binary_type): elif isinstance(alt_host, six.binary_type):
host = alt_host host = alt_host
 End of changes. 3 change blocks. 
3 lines changed or deleted 0 lines changed or added

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