# Building a custom extension in an isolated network

**URL:** <https://community.dynatrace.com/t/building-a-custom-extension-in-an-isolated-network/52928>\
**Category:** Dynatrace Tips\
**Tags:** extension-sdk, extensions\
**Created:** [August 13, 2025, 8:34am UTC](https://community.dynatrace.com/t/building-a-custom-extension-in-an-isolated-network/52928 "2025-08-13T08:34:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gautier\_begin](https://avatars.discourse-cdn.com/v4/letter/g/e36b37/32.png) [@gautier\_begin](https://community.dynatrace.com/u/gautier_begin)\
**Post date:** [August 13, 2025, 8:34am UTC](https://community.dynatrace.com/t/building-a-custom-extension-in-an-isolated-network/52928/1 "2025-08-13T08:34:03Z")

</div>

Hello,

Here my how-to build a custom extension in a place without internet access, which is my case:

References

- [About Extensions — Dynatrace Docs](https://docs.dynatrace.com/docs/ingest-from/extensions20/extensions-concepts)
- [Sign extensions — Dynatrace Docs](https://docs.dynatrace.com/docs/ingest-from/extensions20/sign-extension)
- [https://community.dynatrace.com/t5/Extensions/Dynatrace-2-0-Extension-ActivationSchema/m-p/257483](https://community.dynatrace.com/post/257483)
- [https://developer.dynatrace.com/develop/dynatrace-extensions-vscode/guides/create\_extension](https://developer.dynatrace.com/develop/dynatrace-extensions-vscode/guides/create_extension)
- [Dynatrace Extensions SDK for Python — dt-sdk 1.0.0 documentation](https://dynatrace-extensions.github.io/dt-extensions-python-sdk/)
- [Dynatrace Extensions SDK for Python — dt-sdk 1.0.0 documentation](https://dynatrace-extensions.github.io/dt-extensions-python-sdk/index.html)
- [Extension Structure — dt-sdk 1.0.0 documentation](https://dynatrace-extensions.github.io/dt-extensions-python-sdk/guides/extension_structure.html)
- [\<no title\> — dt-sdk 1.0.0 documentation](https://dynatrace-extensions.github.io/dt-extensions-python-sdk/api/extension.html)
- [GitHub - dynatrace-oss/dt-ext-cli: A command line utility that assists in signing, building and uploading extensions for Dynatrace Extension Framework 2.0. · GitHub](https://github.com/dynatrace-oss/dt-cli)
- [Python Source Releases | Python.org](https://www.python.org/downloads/source/)
- [GitHub - python/cpython: The Python programming language · GitHub](https://github.com/python/cpython.git)
- [pip install - pip documentation v25.2](https://pip.pypa.io/en/stable/cli/pip_install/)

Prerequisites

Python distribution

The Python version must be the same than the one used by the ActiveGates: **Python 3.10.15**

_./remotepluginmodule/agent/res/dsruntime/python3.10/bin/python3 --version_

_Python 3.10.15_

Download the required Python source from&nbsp;[GitHub - python/cpython: The Python programming language · GitHub](https://github.com/python/cpython.git).

Compile it:

_cd cpython_

_./configure --prefix=\<path to your new Python\> \_

_--with-ensurepip=install_

_make -j$((`nproc`+1))_

_make install_

_\<path to your new Python\>/bin/python3 –version_

_Python 3.10.15_

Now we need the Python packages. Download dt-cli and dt-extensions-sdk packages (see in the ref for where to download from) to be able to build your own extension. Download extra required extensions from the pypi web site.

Move the packages in a dedicated folder on your isolated machine.

Now, install the packages:

_dnf install -y&nbsp;rust rust-toolset rust-srpm-macros libffi-devel_

_export PATH=“\<path to your new Python\>/bin:${PATH}”_

_cd \<path to your local package repo\>_

_pip3 install --no-index --find-links=\<path to your local package repo\> \<package name\>_

_dt-sdk --help_

_Usage: dt-sdk [OPTIONS] COMMAND [ARGS]_

_…_

_dt --help_

_Usage: dt [OPTIONS] COMMAND [ARGS]…_

_…_

Signature

Extensions require to be signed with a certificate. This certificate must be present in the cluster and in targets (ActiveGate for remote extension, OneAgent for local extension). The extension is checked against the certificate before being executed, to prevent any intrusion of malicious code.

Generation of the certificate on your development machine:

_cd \<path to your certificate\>_

_dt extension genca --no-ca-passphrase_

_Generating CA…_

_Wrote CA private key: ./ca.key_

_Wrote CA certificate: ./ca.pem_

_mv ca.pem custom\_extension\_ca.pem_

_mv ./ca.key custom\_extension\_ca.key_

_dt extension generate-developer-pem -o custom\_extension\_developer.pem --ca-crt custom\_extension\_ca.pem --ca-key custom\_extension\_ca.key --name DXC_

_Loading CA private key custom\_extension\_ca.key_

_Loading CA certificate custom\_extension\_ca.pem_

_Generating developer certificate…_

_Wrote developer certificate: custom\_extension\_developer.pem_

_Wrote developer private key: custom\_extension\_developer.pem_

| **Kind of target&nbsp;** | **Place** |
| Cluster | Put the&nbsp;custom\_extension\_ca.pem in&nbsp;GUI =\> Credential vault |
| ActiveGate | ./remotepluginmodule/agent/conf/certificates/custom\_extension\_ca.pem |
| UNIX OneAgent | /var/lib/dynatrace/oneagent/agent/config/certificatesBeware: the folder is own by root |
| Windows OneAgent | /project/eag0/config/remotepluginmodule/agent/conf/certificates |

Extension build

After developing your extension according the documentation

> **[Dynatrace Extensions SDK for Python — dt-sdk 1.0.0 documentation](https://dynatrace-extensions.github.io/dt-extensions-python-sdk/)**

You need to compile

_export&nbsp;PIP\_NO\_INDEX=1_

_export PATH=“\<path to your new Python\>/bin:${PATH}”_

_cd \<path to your custom extension\>_

_dt-sdk build --find-links=\<path to your local package repo\> --private-key&nbsp; \<path to your certificate\>/custom\_extension\_developer.pem_

Regards,

Gautier
