def _get_fingerprints_in_trust_db(trustdb_path):
    """Get fingerprints (and associated trust levels) in a trustdb file"""
    with open(trustdb_path, "r") as fi:
        trustdb = fi.readlines()
    fingerprints_in_db = [
        entry.strip()  # remove comments, whitespace, and newlines from trustdb
        for entry in trustdb
        if not entry.startswith("#")
    ]
    return fingerprints_in_db