Checking signature failed for Custom Extension 2.0 with Python and Dynatrace extension in visual studio code

Answering myself: Sign extensions — Dynatrace Docs

Remote extensions
Upload your root certificate to each ActiveGate host within the ActiveGate group selected for running your extensions

Save the root.pem certificate file in the following location:

Linux:
<CONFIG>/remotepluginmodule/agent/conf/certificates/ (default: /var/lib/dynatrace/remotepluginmodule/agent/conf/certificates/)
Windows:
%PROGRAMDATA%\dynatrace\remotepluginmodule\agent\conf\certificates
Local extensions
Upload your root certificate to each OneAgent host or each OneAgent host within the host group selected for running your extensions.

Save the root.pem certificate file in the following location:

Linux:
/var/lib/dynatrace/oneagent/agent/config/certificates
Windows:
%PROGRAMDATA%\dynatrace\oneagent\agent\config\certificates