# Extensions Framework v2.0: root CA cert distribution on ActiveGate KO

**URL:** <https://community.dynatrace.com/t/extensions-framework-v2-0-root-ca-cert-distribution-on-activegate-ko/46304>\
**Category:** Extensions\
**Tags:** certificate, extensions\
**Created:** [June 25, 2024, 6:47pm UTC](https://community.dynatrace.com/t/extensions-framework-v2-0-root-ca-cert-distribution-on-activegate-ko/46304 "2024-06-25T18:47:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gilles\_tabary](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gilles\_tabary](https://community.dynatrace.com/u/gilles_tabary)\
**Post date:** [June 25, 2024, 6:47pm UTC](https://community.dynatrace.com/t/extensions-framework-v2-0-root-ca-cert-distribution-on-activegate-ko/46304/1 "2024-06-25T18:47:22Z")

</div>

Hello.

I followed

- [Sign extensions — Dynatrace Docs](https://docs.dynatrace.com/docs/shortlink/sign-extension#cert)
- [and https://docs.dynatrace.com/docs/shortlink/sign-extension#remote-extensions](https://docs.dynatrace.com/docs/shortlink/sign-extension#remote-extensions)

Yet when trying to configure my signed custom extensions on my AGs I get :

```markup
ERROR Failed to assign monitoring configuration to ActiveGate. Reason: Cannot extract extension from /mypath/var/conf/dynatrace/remotepluginmodule/agent/runtime/extensions/download/my_custom_extention: checking signature failed dsfm

warning [native] SignatureVerifier: openssl error: error:2E099064:CMS routines:cms_signerinfo_verify_cert:certificate verify error : Verify error:unable to get local issuer certificate

```

Any idea ?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [June 25, 2024, 6:53pm UTC](https://community.dynatrace.com/t/extensions-framework-v2-0-root-ca-cert-distribution-on-activegate-ko/46304/2 "2024-06-25T18:53:28Z")

</div>

Check the extension module log if it loads the certificate, check permissions for the certificate file (ActiveGate user must be able to read it) and also its format.

---

<div class="post-metadata">

**Author:** ![gilles\_tabary](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gilles\_tabary](https://community.dynatrace.com/u/gilles_tabary)\
**Post date:** [June 25, 2024, 7:20pm UTC](https://community.dynatrace.com/t/extensions-framework-v2-0-root-ca-cert-distribution-on-activegate-ko/46304/3 "2024-06-25T19:20:26Z")

</div>

AFAIS it does load the cert i.e. no error / warning in logs. Any other way to hard check it does load it ? Like :

```markup
1350 2024-06-25 12:42:02.241 UTC [001f78d3] info [native] SignatureVerifier: avaiable certificate files: cacert.pem, my-cert-root-ca.pem

```

File perm r--r----- dtuserag:dtuserag (no access denied error in logs)

Format is given by generating command ‘dt extension genca --no-ca-passphrase’. Any thing else to check ? How-to ?

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [June 26, 2024, 5:38am UTC](https://community.dynatrace.com/t/extensions-framework-v2-0-root-ca-cert-distribution-on-activegate-ko/46304/4 "2024-06-26T05:38:50Z")

</div>

Please double-check your extension is signed using a certificate issued by the CA you imported.

You can also verify the signature manually (does not help to import the extension, but shows you details)&nbsp;[https://docs.dynatrace.com/docs/shortlink/sign-extension#verify-signature](https://docs.dynatrace.com/docs/shortlink/sign-extension#verify-signature)

---

<div class="post-metadata">

**Author:** ![gilles\_tabary](https://avatars.discourse-cdn.com/v4/letter/g/eb9ed0/32.png) [@gilles\_tabary](https://community.dynatrace.com/u/gilles_tabary)\
**Post date:** [June 26, 2024, 2:11pm UTC](https://community.dynatrace.com/t/extensions-framework-v2-0-root-ca-cert-distribution-on-activegate-ko/46304/5 "2024-06-26T14:11:37Z")

</div>

Thanks. Did so.

```markup
unzip bundle.zip # Signed extension bundle

     extracting: extension.zip
     extracting: extension.zip.sig

openssl cms -verify \
-CAfile root-ca-cert.pem \ # *not* the extension leaf cert
-in extension.zip.sig \ # *not* the signed extension
-binary -content extension.zip \ # *not* the bundle, *only* the non signed extension
--inform PEM -out /dev/null

     Verification successful

```

My verification was **not** successfull showing locally (ouside of a Dynatrace Environment) the message :

```markup
20004:error:2E099064:CMS routines:cms_signerinfo_verify_cert:certificate verify error:../openssl-1.1.1g/crypto/cms/cms_smime.c:252:Verify error:unable to get local issuer certificate

```

Ran again the procedure and now verification says it’s fine. I deleted / re-uploaded extension in my Dynatrace Environment. Hope it will be better. We will see.
