# EF2 extensions: More than one root CA in root.pem?

**URL:** <https://community.dynatrace.com/t/ef2-extensions-more-than-one-root-ca-in-root-pem/48422>\
**Category:** Extensions\
**Tags:** extensions\
**Created:** [October 20, 2024, 8:08pm UTC](https://community.dynatrace.com/t/ef2-extensions-more-than-one-root-ca-in-root-pem/48422 "2024-10-20T20:08:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 20, 2024, 8:08pm UTC](https://community.dynatrace.com/t/ef2-extensions-more-than-one-root-ca-in-root-pem/48422/1 "2024-10-20T20:08:56Z")

</div>

When developing custom extensions, we have to upload the root cert CA to the root.pem file, in your AG, according to:

> **[Sign extensions](https://docs.dynatrace.com/docs/ingest-from/extensions/develop-your-extensions/sign-extensions)**
>
> Learn how to sign an extension, upload certificates and custom extensions, and configure certificate permissions using the Dynatrace Extensions Framework.

Has anyone experienced or had the need to have more than one root CA, for two set of developers. Do these files and Dynatrace support multiple root CAs in the file?

---

<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:** [October 20, 2024, 8:13pm UTC](https://community.dynatrace.com/t/ef2-extensions-more-than-one-root-ca-in-root-pem/48422/2 "2024-10-20T20:13:34Z")

</div>

Use a single CA and generate certificates for individual developers. You upload the root CA cert only to Environment/AG/OA. But you will have you generate the certs manually (do not autogenerate it in vscode).

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [October 20, 2024, 8:20pm UTC](https://community.dynatrace.com/t/ef2-extensions-more-than-one-root-ca-in-root-pem/48422/3 "2024-10-20T20:20:21Z")

</div>

As long as you name the files differently, you can have several certificates in the folder. That being said, I recommend to do what Julius said though for simplicity’s sake when you onboard new developers.

---

<div class="post-metadata">

**Author:** ![AntonioSousa](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/antoniosousa/32/50_2.png) [@AntonioSousa](https://community.dynatrace.com/u/AntonioSousa)\
**Post date:** [October 20, 2024, 8:50pm UTC](https://community.dynatrace.com/t/ef2-extensions-more-than-one-root-ca-in-root-pem/48422/4 "2024-10-20T20:50:55Z")

</div>

[@Mike\_L](https://community.dynatrace.com/user/11520),

Does that mean that I can have a root.pem, root1.pem, etc in the same directory?

BTW, the use case is a client where two Organizations are developing, both us & the client. And I also can see eventually other custom extensions in the future :dynaspin:

---

<div class="post-metadata">

**Author:** ![Mike\_L](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/mike_l/32/11717_2.png) [@Mike\_L](https://community.dynatrace.com/u/Mike_L)\
**Post date:** [October 20, 2024, 9:15pm UTC](https://community.dynatrace.com/t/ef2-extensions-more-than-one-root-ca-in-root-pem/48422/5 "2024-10-20T21:15:48Z")

</div>

We load in any certificate in that folder, no matter the name.

---

<div class="post-metadata">

**Author:** ![jonhaugen](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jonhaugen/32/34914_2.png) [@jonhaugen](https://community.dynatrace.com/u/jonhaugen)\
**Post date:** [October 21, 2024, 9:19am UTC](https://community.dynatrace.com/t/ef2-extensions-more-than-one-root-ca-in-root-pem/48422/6 "2024-10-21T09:19:05Z")

</div>

Hi Antonio,

You can have several root certificates uploaded in the certificate folder, however that may defeat the benefits of signing extensions in the first place.

If you want to ensure that only your trusted developers are able to upload extensions, please consider the following:

- Code signing certificate issued by your domain admins to each of your developers.
- Use a single CA so the certificates issued to the developers are valid.
- Optional to use Intermediate certificates and upload the chain to OA. The benefits here are to create structures for what systems the developers can deploy extensions to.

Detailed sketch on how Extensions 2.0 are validated and ran.

 ![Workflow](https://global.discourse-cdn.com/dynatrace/original/3X/9/d/9d991f695fdc2a7fd92c26c644b166831f8a8ae2.png)

Example on how additional security is being added to different systems using several intermediate CA’s in a domain. Please ignore “script 2” in the sketch, as an extension cannot be signed by multiple signers (yet)

 ![Additional security](https://global.discourse-cdn.com/dynatrace/original/2X/e/eb577e0fd8cf24aa316fa7e54a9b2f45a4137d01.png)

Let me know if the figures attached will help you determine what the best course of action will be for your environment.

Good luck!
