def create_ca_client():
    """
    Creates a client for accessing GCP API based on credentials supplied in application config.
    """
    return privateca.CertificateAuthorityServiceClient(
        credentials=service_account.Credentials.from_service_account_file(
            current_app.config['GOOGLE_APPLICATION_CREDENTIALS']
        )
    )

    Creates a client for accessing GCP API based on credentials supplied in application config.
    
lemur/plugins/lemur_google_ca/plugin.py