# SQL DB extension

**URL:** <https://community.dynatrace.com/t/sql-db-extension/47221>\
**Category:** Extensions\
**Tags:** databases, extensions\
**Created:** [August 20, 2024, 5:43pm UTC](https://community.dynatrace.com/t/sql-db-extension/47221 "2024-08-20T17:43:04Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![KDalmeida](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@KDalmeida](https://community.dynatrace.com/u/KDalmeida)\
**Post date:** [August 20, 2024, 5:43pm UTC](https://community.dynatrace.com/t/sql-db-extension/47221/1 "2024-08-20T17:43:04Z")

</div>

I’m going through the steps to build an SQL extension and use Dynatrace CLI.

When I run the second command in step 4 “dt extension sign --key secrets/developer.pem”

error message “command not found: dt”

Note: I’m using this doc&nbsp;[Sign extensions — Dynatrace Docs](https://docs.dynatrace.com/docs/extend-dynatrace/extensions20/sign-extension#install-cli)

---

<div class="post-metadata">

**Author:** ![rudy\_h](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rudy_h/32/5153_2.png) [@rudy\_h](https://community.dynatrace.com/u/rudy_h)\
**Post date:** [August 21, 2024, 6:23am UTC](https://community.dynatrace.com/t/sql-db-extension/47221/2 "2024-08-21T06:23:52Z")

</div>

Hi,

Have you run the first command? The result should be like this:

dt extension assemble  
Building extension.zip from src  
Adding file: src\alerts\buffer\_cache\_hit.json as alerts\buffer\_cache\_hit.json  
Adding file: src\alerts\log\_usage.json as alerts\log\_usage.json  
Adding file: src\dashboards\overview\_dashboard.json as dashboards\overview\_dashboard.json  
Adding file: src\extension.yaml as extension.yaml

If you failed to run the first command, you need run this command first :&nbsp;pip install dt-cli

---

<div class="post-metadata">

**Author:** ![KDalmeida](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@KDalmeida](https://community.dynatrace.com/u/KDalmeida)\
**Post date:** [August 21, 2024, 7:43pm UTC](https://community.dynatrace.com/t/sql-db-extension/47221/3 "2024-08-21T19:43:49Z")

</div>

I did a re-run of all the commands but did not get the&nbsp;extension.zip.sig file.

I have the bundle.zip and the extension.zip files

And when I ran the&nbsp;“dt extension upload bundle.zip” input my tenant url and api token I get error message:

“[SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed: unable to get local issuer certificate (\_ssl.c:1000)”

---

<div class="post-metadata">

**Author:** ![rudy\_h](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rudy_h/32/5153_2.png) [@rudy\_h](https://community.dynatrace.com/u/rudy_h)\
**Post date:** [August 22, 2024, 2:15am UTC](https://community.dynatrace.com/t/sql-db-extension/47221/4 "2024-08-22T02:15:00Z")

</div>

Hi,

How about step 3? Have you done the following steps:

 ![rudy_h_0-1724292873575.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/3/63ba9c6fb57f08393162868f358bdf74ee8e08f4.png)

---

<div class="post-metadata">

**Author:** ![KDalmeida](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@KDalmeida](https://community.dynatrace.com/u/KDalmeida)\
**Post date:** [August 22, 2024, 5:52pm UTC](https://community.dynatrace.com/t/sql-db-extension/47221/5 "2024-08-22T17:52:04Z")

</div>

I found the credential vault and uploaded the root file.

---

<div class="post-metadata">

**Author:** ![KDalmeida](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@KDalmeida](https://community.dynatrace.com/u/KDalmeida)\
**Post date:** [August 22, 2024, 7:28pm UTC](https://community.dynatrace.com/t/sql-db-extension/47221/6 "2024-08-22T19:28:36Z")

</div>

Step 1: command:&nbsp;“pip install dt-cli” works and the installation is completed

Step 2: ran successfully, and certificates and keys were generated. I got all the right output according to the doc.

Step 3: Added root certificate to credential vault in the UI. Uploaded successfully.

Step 4: The first command: “dt extension assemble” ran successfully and created extension.zip file

The second command: “dt extension sign --key secrets/developer.pem” only creates bundle.zip and gives no&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; output.

How can I get the extension.zip.sig file? Please help

---

<div class="post-metadata">

**Author:** ![rudy\_h](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rudy_h/32/5153_2.png) [@rudy\_h](https://community.dynatrace.com/u/rudy_h)\
**Post date:** [August 23, 2024, 2:08am UTC](https://community.dynatrace.com/t/sql-db-extension/47221/7 "2024-08-23T02:08:56Z")

</div>

Hi,

That file is in bundle.zip.

Please run the following step afterward:

 ![rudy_h_0-1724378818835.png](https://global.discourse-cdn.com/dynatrace/original/2X/4/49feee84dbd6fa681dbde2844f56bd0126f559ab.png)

If you installed the activegate in your PC, you may simply copy root.pem into the specified directory above.

---

<div class="post-metadata">

**Author:** ![KDalmeida](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@KDalmeida](https://community.dynatrace.com/u/KDalmeida)\
**Post date:** [August 26, 2024, 4:43pm UTC](https://community.dynatrace.com/t/sql-db-extension/47221/8 "2024-08-26T16:43:00Z")

</div>

Hi,

My ActiveGate is AWS and I copied the root.pem file to the path.

I’m still getting this error “[SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed: unable to get local issuer certificate (\_ssl.c:1000)”

---

<div class="post-metadata">

**Author:** ![rudy\_h](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rudy_h/32/5153_2.png) [@rudy\_h](https://community.dynatrace.com/u/rudy_h)\
**Post date:** [August 26, 2024, 11:00pm UTC](https://community.dynatrace.com/t/sql-db-extension/47221/9 "2024-08-26T23:00:23Z")

</div>

Hi,

There are several .pem files in your secrets directory like this:

 ![rudy_h_0-1724713069301.png](https://global.discourse-cdn.com/dynatrace/original/3X/d/f/df9d2079e0b7a1cc8d2c389d87e0b8d29c3d1b1c.png)

Are you sure you copy the 2 KB file? Also which file did you upload to the credential vault? Screen shot may help us to identify your fault

---

<div class="post-metadata">

**Author:** ![KDalmeida](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@KDalmeida](https://community.dynatrace.com/u/KDalmeida)\
**Post date:** [August 27, 2024, 5:19am UTC](https://community.dynatrace.com/t/sql-db-extension/47221/10 "2024-08-27T05:19:31Z")

</div>

These are the files in my secrets directory.

 ![KDalmeida_0-1724735302467.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/e/7e583f599f5e5463d085c785538e8fd7f059a7d2.png)

I uploaded the ca.pem file to the credential vault from the UI

![KDalmeida_2-1724735738539.png](https://global.discourse-cdn.com/dynatrace/original/3X/7/d/7d4b133fb39b03bb90bbf950da48720353b6e114.png)

I added the ca.pem file to the Activegate host

 ![KDalmeida_1-1724735656948.png](https://global.discourse-cdn.com/dynatrace/original/1X/12291e8f1e18dcf10c339dec1c051fabc4bc9aea.png)

---

<div class="post-metadata">

**Author:** ![rudy\_h](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rudy_h/32/5153_2.png) [@rudy\_h](https://community.dynatrace.com/u/rudy_h)\
**Post date:** [August 28, 2024, 2:18am UTC](https://community.dynatrace.com/t/sql-db-extension/47221/11 "2024-08-28T02:18:17Z")

</div>

Hi,

Please reupload the certificate into credential vault and give us the screen shot like this one:

 ![rudy_h_0-1724811383718.png](https://global.discourse-cdn.com/dynatrace/original/3X/c/6/c68ac56a0cb0a9c572d007385a5c425208a88f61.png)

Fill the description with your name to check whether it has successfully shown up in the credential vault list

---

<div class="post-metadata">

**Author:** ![KDalmeida](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@KDalmeida](https://community.dynatrace.com/u/KDalmeida)\
**Post date:** [August 28, 2024, 2:58pm UTC](https://community.dynatrace.com/t/sql-db-extension/47221/12 "2024-08-28T14:58:54Z")

</div>

![KDalmeida_0-1724857113262.png](https://global.discourse-cdn.com/dynatrace/original/2X/d/d70b06745b84261e918dbb38e84587781c11b04c.png)

---

<div class="post-metadata">

**Author:** ![rudy\_h](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rudy_h/32/5153_2.png) [@rudy\_h](https://community.dynatrace.com/u/rudy_h)\
**Post date:** [August 29, 2024, 2:31am UTC](https://community.dynatrace.com/t/sql-db-extension/47221/13 "2024-08-29T02:31:33Z")

</div>

Hi,

Please input a description and save it. The description should show up in the credential vault list in the name & description column along with your email address in the Owner column.

Once you confirm it, please make sure that you input the same tenant url (the one you used to access the credential vault) when you run&nbsp;the&nbsp;“dt extension upload bundle.zip”

Sometimes you need to type the tenant url (not copy paste) to make sure they are exactly the same.

---

<div class="post-metadata">

**Author:** ![KDalmeida](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@KDalmeida](https://community.dynatrace.com/u/KDalmeida)\
**Post date:** [August 29, 2024, 2:06pm UTC](https://community.dynatrace.com/t/sql-db-extension/47221/14 "2024-08-29T14:06:29Z")

</div>

![KDalmeida_0-1724940370991.png](https://global.discourse-cdn.com/dynatrace/optimized/1X/493f7550cc539a6477ebd6786dae1ac156763c3e_2_690x42.png)

---

<div class="post-metadata">

**Author:** ![KDalmeida](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@KDalmeida](https://community.dynatrace.com/u/KDalmeida)\
**Post date:** [August 29, 2024, 7:52pm UTC](https://community.dynatrace.com/t/sql-db-extension/47221/15 "2024-08-29T19:52:23Z")

</div>

I got the extension.zip.sig file but certificate verification is still failing when I run “dt extension upload bundle.zip”

error message “[SSL: CERTIFICATE\_VERIFY\_FAILED] certificate verify failed: unable to get local issuer certificate (\_ssl.c:1000)”

---

<div class="post-metadata">

**Author:** ![rudy\_h](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rudy_h/32/5153_2.png) [@rudy\_h](https://community.dynatrace.com/u/rudy_h)\
**Post date:** [August 29, 2024, 10:49pm UTC](https://community.dynatrace.com/t/sql-db-extension/47221/16 "2024-08-29T22:49:46Z")

</div>

Hi,

Please check your access token:

 ![rudy_h_0-1724971677026.png](https://global.discourse-cdn.com/dynatrace/original/3X/6/f/6fb2666c952a924efe2cf3ce656ebe069883d4a8.png)

Please show the expiration date and API v2 scopes

---

<div class="post-metadata">

**Author:** ![KDalmeida](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@KDalmeida](https://community.dynatrace.com/u/KDalmeida)\
**Post date:** [September 4, 2024, 3:12pm UTC](https://community.dynatrace.com/t/sql-db-extension/47221/17 "2024-09-04T15:12:17Z")

</div>

My token is right it has all the required scopes.

---

<div class="post-metadata">

**Author:** ![KDalmeida](https://avatars.discourse-cdn.com/v4/letter/k/67e7ee/32.png) [@KDalmeida](https://community.dynatrace.com/u/KDalmeida)\
**Post date:** [September 4, 2024, 3:37pm UTC](https://community.dynatrace.com/t/sql-db-extension/47221/18 "2024-09-04T15:37:28Z")

</div>

![KDalmeida_0-1725464233690.png](https://global.discourse-cdn.com/dynatrace/original/2X/e/e4c2704755a20bf12bba0762057f3d4b5d081bcc.png)

---

<div class="post-metadata">

**Author:** ![rudy\_h](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rudy_h/32/5153_2.png) [@rudy\_h](https://community.dynatrace.com/u/rudy_h)\
**Post date:** [September 5, 2024, 2:53am UTC](https://community.dynatrace.com/t/sql-db-extension/47221/19 "2024-09-05T02:53:06Z")

</div>

Hi,

Please check your Python version:

 ![rudy_h_0-1725504418163.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/2/123dc108d9a43cd0bfa7a0d8c8933313cb95d052.png)

Please call command for windows: python -V

Please call command for linux:&nbsp;python3 --version

If your python does not meet the prerequisite, please upgrade it. Python 3.8 is the minimal version. I am using 3.12.5 and it is doing fine.
