def validate_certificate(certificate_name):
    """
    Ensuring that the specified certificate exists.
    :param certificate_name:
    :return:
    """
    if certificate_name:
        cert = get_by_name(certificate_name)

        if not cert:
            click.echo(f"[-] No certificate found with name: {certificate_name}")
            sys.exit(1)

        return cert

    Ensuring that the specified certificate exists.
    :param certificate_name:
    :return:
    
lemur/certificates/cli.py