'Does vhost have ssl on for all ports?
:param :class:`~certbot_nginx.obj.VirtualHost` vhost: The vhost in question
:returns: True if \'ssl on\' directive is included
:rtype: bool'

def has_ssl_on_directive(self, vhost):

    server = vhost.raw
    for directive in server:
        if (not directive):
            continue
        elif _is_ssl_on_directive(directive):
            return True
    return False
