import ssl


def get_ssl_context(account):
    """Returns None if the account doesn't need to skip ssl
    verification. Otherwise returns ssl context with disabled
    certificate/hostname verification."""
    if account["skip_ssl_verification"]:
        ssl_context = ssl.create_default_context()
        ssl_context.check_hostname = False
        ssl_context.verify_mode = ssl.CERT_NONE
    else:
        ssl_context = None

    return ssl_context