from pathlib import Path


def extract_domain_from_filename(filename):
    """
    >>> extract_domain_from_filename('wildcard_allegro.pl.crt')
    wildcard_allegro.pl
    """
    return Path(filename).stem