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
Add your root certificate to the Dynatrace credential vault. This is required before you can upload an extension ZIP file to your environment.
When adding the certificate, use the following settings:
Public certificateExtension validationThe VS Code extension does this automatically. If you work with multiple environments (for example, development and production), you must add the certificate to the credential vault of each environment separately.
For JMX extensions, adding the certificate to the credential vault is the only step required. You don't need to save the certificate to the host filesystem.
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