def _generate_header():
    """
    Generate a PowerDNS API header and return it as a dictionary

    :return: Dict of header parameters
    """
    api_key_name = current_app.config.get("ACME_POWERDNS_APIKEYNAME")
    api_key = current_app.config.get("ACME_POWERDNS_APIKEY")
    headers = {api_key_name: api_key}
    return headers

    Generate a PowerDNS API header and return it as a dictionary

    :return: Dict of header parameters
    
lemur/plugins/lemur_acme/powerdns.py