Before uploading an extension to your Dynatrace environment, sign it to verify its authenticity. After signing, save the root certificate to a dedicated directory on each host running the extension, whether OneAgent or ActiveGate.
Depending on your needs, choose one of the following methods to sign and build your extension:
dt-extensions-sdk - an all-in-one CLI tool RecommendedYou can also use the Dynatrace CLI (dt-cli) to sign your extension. Since its features are fully contained within dt-extensions-sdk CLI, only use it as a lighter alternative for CI/CD environments.
Read more about dt-cli on GitHub.
Upload your root certificate to enhance the security of the Extensions framework.
By doing this, you
For JMX extensions, you only need to add the certificate to the Dynatrace credential vault. When adding the certificate, select the Extension validation scope.
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:
/var/lib/dynatrace/remotepluginmodule/agent/conf/certificates/%PROGRAMDATA%\dynatrace\remotepluginmodule\agent\conf\certificatesUpload 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:
/var/lib/dynatrace/oneagent/agent/config/certificates%PROGRAMDATA%\dynatrace\oneagent\agent\config\certificatesFor the Extension Execution Controller to read the certificate properly, ensure the certificate file has the correct permissions:
Windows:
LOCAL_SYSTEMLOCAL_SERVICELinux:
dtuserdtuseragAfter signing your extension and uploading the root certificate, you can upload the custom extension to your Dynatrace environment. For details, see Manage Extensions.
If you encounter any permission errors when accessing the certificate file (for example, Error opening file /var/lib/dynatrace/remotepluginmodule/agent/conf/certificates/root.pem : Permission denied):
ls -l /var/lib/dynatrace/oneagent/agent/config/certificates/root.pemls -l /var/lib/dynatrace/remotepluginmodule/agent/conf/certificates/root.pem
Extensions