# Does Dynatrace monitor SSL certificate validation?

**URL:** <https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357>\
**Category:** Extensions\
**Tags:** ssl, extensions\
**Created:** [July 10, 2019, 1:57pm UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357 "2019-07-10T13:57:33Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [July 10, 2019, 1:57pm UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/1 "2019-07-10T13:57:33Z")

</div>

Hi Folks,

We have a customer who wants to monitor SSL certification validation check via dynatrace.

Is it possible to monitor SSL certificate validation? I’m seeking more information from the customer about the this but this is what I got as requirement.

BR,

AK

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [July 10, 2019, 4:54pm UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/2 "2019-07-10T16:54:10Z")

</div>

By Dynatrace our of the box not but you can make OneAgent plugin that will validate it and send data as custom metrics to Dynatrace

---

<div class="post-metadata">

**Author:** ![AK](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ak/32/164_2.png) [@AK](https://community.dynatrace.com/u/AK)\
**Post date:** [July 15, 2019, 6:31am UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/3 "2019-07-15T06:31:34Z")

</div>

Hi Sebastian,

Thanks for response.

Any document available with respect to this? I mean, specific to OneAgent plugin creation for SSL certification validation check.

BR,

AK

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [July 15, 2019, 6:38am UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/4 "2019-07-15T06:38:36Z")

</div>

There are not documents like this because these are custom things. What you need to do is first finding way how using python (or bash) get information about certificates. When you will have this you are good to go for writing plugin because you will need those peace of code as source of extra metrics. That’s all basically.

Sebastian

---

<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:** [January 12, 2020, 9:38pm UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/5 "2020-01-12T21:38:35Z")

</div>

I’ve written a OneAgent plugin for SSL/TLS certificate expiration check (also does notification in advance). If you need to check certificates locally for any process running on a host monitored by oneagent.

If you are interested, you can download it from [GitHub - juliusloman/dynatrace-oneagent-plugin-sslcertcheck: Dynatrace OneAgent plugin for SSL/TLS certificate expiration check · GitHub](https://github.com/juliusloman/dynatrace-oneagent-plugin-sslcertcheck).

---

<div class="post-metadata">

**Author:** ![gokul\_subramani](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gokul\_subramani](https://community.dynatrace.com/u/gokul_subramani)\
**Post date:** [January 13, 2020, 10:03am UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/6 "2020-01-13T10:03:52Z")

</div>

Hi Julius,

I have uploaded your OneAgent plugin for SSL/TLS certificate expiration however dont how to deploy plugin to hosts running OneAgents

---

<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:** [January 13, 2020, 10:28am UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/7 "2020-01-13T10:28:13Z")

</div>

Download the zip file. (available in the releases tab).

You have to do two steps:

1. Upload the plugin into the tenant in Settings \> Monitoring \> Monitored technologies
2. Unzip the plugin on each oneagent monitored host in /opt/dynatrace/oneagent/plugin\_deployment/ (if you oneagent is installed in the default path).  
Dynatrace does not have any means to deploy the plugin centrally, that why you have to deploy it manually or using some configuration management tools.

OneAgent will pick up the new plugin just after a few minutes. No need to restart OneAgent

---

<div class="post-metadata">

**Author:** ![gokul\_subramani](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gokul\_subramani](https://community.dynatrace.com/u/gokul_subramani)\
**Post date:** [January 14, 2020, 11:10am UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/8 "2020-01-14T11:10:33Z")

</div>

i have given it necessary permission as well

\*ADMINSHELL\* opt/dynatrace/remotepluginmodule/plugin\_deployment/dynatrace-oneagent-plugin-sslcertcheck-master # ll  
total 20  
-rwxr-xr-x 1 root root 2277 Jan 12 21:22 plugin.json  
-rwxr-xr-x 1 root root 2172 Jan 12 21:22 README.md  
-rwxr-xr-x 1 root root 9410 Jan 12 21:22 sslcertcheck\_plugin.py  
\*ADMINSHELL\* opt/dynatrace/remotepluginmodule/plugin\_deployment/dynatrace-oneagent-plugin-sslcertcheck-master #

---

<div class="post-metadata">

**Author:** ![gokul\_subramani](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gokul\_subramani](https://community.dynatrace.com/u/gokul_subramani)\
**Post date:** [January 14, 2020, 11:11am UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/9 "2020-01-14T11:11:52Z")

</div>

still its not capturing ,How much time take to pick it up?

---

<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:** [January 14, 2020, 11:23am UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/10 "2020-01-14T11:23:48Z")

</div>

First - you have downloaded the repo, not the built plugin. Head to the releases page and download the release zip file, that’s actually [here.](https://github.com/juliusloman/dynatrace-oneagent-plugin-sslcertcheck/releases)

Second - you have put it into the directory of ActiveGate plugin module. This is a OneAgent plugin, not an ActiveGate plugin. Unless you have installed OneAgent in some nondefault directory, it is the /opt/dynatrace/oneagent/plugin\_deployment/ directory.

---

<div class="post-metadata">

**Author:** ![gokul\_subramani](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gokul\_subramani](https://community.dynatrace.com/u/gokul_subramani)\
**Post date:** [January 14, 2020, 12:09pm UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/11 "2020-01-14T12:09:22Z")

</div>

Yes,I have downloaded file name called Source code(ZIP) and I have uploaded like below.

Is it right way to download and upload it?

 ![23189-capture.jpg](https://global.discourse-cdn.com/dynatrace/original/3X/3/0/30644c5005bbfab06825c1e205fda9770a4932f5.jpeg)

---

<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:** [January 14, 2020, 12:31pm UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/12 "2020-01-14T12:31:12Z")

</div>

No, it is the file [custom.python.sslcertcheck\_plugin.zip](https://github.com/juliusloman/dynatrace-oneagent-plugin-sslcertcheck/releases/download/1.0/custom.python.sslcertcheck_plugin.zip) not the zip code.  
Upload this file to the tenant as on your screenshot and also unzip the file on an agent.

---

<div class="post-metadata">

**Author:** ![gokul\_subramani](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gokul\_subramani](https://community.dynatrace.com/u/gokul_subramani)\
**Post date:** [January 14, 2020, 1:02pm UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/13 "2020-01-14T13:02:36Z")

</div>

unzip the file on an agent means do i have to unzip and put this [custom.python.sslcertcheck\_plugin](https://github.com/juliusloman/dynatrace-oneagent-plugin-sslcertcheck/releases/download/1.0/custom.python.sslcertcheck_plugin.zip)under /opt/dynatrace/oneagent/plugin\_deployment/ on the host right?

---

<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:** [January 14, 2020, 1:17pm UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/14 "2020-01-14T13:17:52Z")

</div>

Exactly. Is should look like this

```auto
# ls -l /opt/dynatrace/oneagent/plugin_deployment/custom.python.sslcertcheck_plugin/
total
drwxrwxr-x 1 root root 382 Jan 12 22:24 asn1cryp
drwxrwxr-x 1 root root 96 Jan 12 22:24 asn1crypto-1.3.0.dist-in
-rwxrwxr-x 1 root root 2277 Jan 12 22:21 plugin.js
-rwxrwxr-x 1 root root 2172 Jan 12 22:17 README.
drwxrwxr-x 1 root root 82 Jan 12 22:24 sslcertcheck_plugin-1.0.dist-in
-rwxrwxr-x 1 root root 9410 Jan 12 22:02 sslcertcheck_plugin.py

```

---

<div class="post-metadata">

**Author:** ![gokul\_subramani](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gokul\_subramani](https://community.dynatrace.com/u/gokul_subramani)\
**Post date:** [January 21, 2020, 10:43am UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/15 "2020-01-21T10:43:36Z")

</div>

As per your guideline,I have uploaded,still its not capturing

how to check the certificate are listed and monitoring in dynatrace?

\*ADMINSHELL\* opt/dynatrace/remotepluginmodule/plugin\_deployment/custom.python.sslcertcheck\_plugin # ll  
total 32  
drwxr-xr-x 2 root root 4096 Jan 21 09:18 asn1crypto  
drwxr-xr-x 2 root root 4096 Jan 21 09:18 asn1crypto-1.3.0.dist-info  
-rwxr-xr-x 1 root root 2277 Jan 21 09:18 plugin.json  
-rwxr-xr-x 1 root root 2172 Jan 21 09:18 README.md  
drwxr-xr-x 2 root root 4096 Jan 21 09:18 sslcertcheck\_plugin-1.0.dist-info  
-rwxr-xr-x 1 root root 9410 Jan 21 09:18 sslcertcheck\_plugin.py

 ![23328-1579603376493.png](https://global.discourse-cdn.com/dynatrace/original/2X/f/fbbff653a6f97c83281c36f2ac7e32b97db8c23a.png)

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

---

<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:** [January 21, 2020, 12:43pm UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/16 "2020-01-21T12:43:51Z")

</div>

Hello [@Gokul S.](https://answers.dynatrace.com/users/27362/view.html),  
you still have the plugin copied in an incorrect directory. This directory is for the remote plugins (executed by ActiveGate).

**You need to have the plugin copied in this directory**

```auto
/opt/dynatrace/oneagent/plugin_deployment/custom.python.sslcertcheck_plugin/

```

and not in:

```auto
/opt/dynatrace/remotepluginmodule/plugin_deployment/custom.python.sslcertcheck_plugin

```

I’ve added a new release (1.01) that of the plugin that will inform you about certificates the plugin found and will monitor:

 ![23330-1579610604849.png](https://global.discourse-cdn.com/dynatrace/original/2X/b/bffc1c84ccac810e9a5559e7cd2eae7e67103751.png)

---

<div class="post-metadata">

**Author:** ![gokul\_subramani](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@gokul\_subramani](https://community.dynatrace.com/u/gokul_subramani)\
**Post date:** [January 24, 2020, 8:47am UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/17 "2020-01-24T08:47:33Z")

</div>

Still its not working.

Can you review my below steps :

1)I have place the custom.python.sslcertcheck\_plugin zip file under Settings-\>Monitoring-\>Monitored technologies-\>Add new technology monitoring-\>Build OneAgent plugin with Python-\>Upload your plugin here or via command line (choose Upload plugin)

2)Unzip the custom.python.sslcertcheck\_plugin file and placed the file under

opt/dynatrace/oneagent/plugin\_deployment/custom.python.sslcertcheck\_plugin/custom.python.sslcertcheck\_plugin# ll  
total 32  
drwxr-xr-x 2 root root 4096 Jan 23 13:11 asn1crypto  
drwxr-xr-x 2 root root 4096 Jan 23 13:11 asn1crypto-1.3.0.dist-info  
-rwxr-xr-x 1 root root 2278 Jan 23 13:11 plugin.json  
-rwxr-xr-x 1 root root 3017 Jan 23 13:11 README.md  
drwxr-xr-x 2 root root 4096 Jan 23 13:11 sslcertcheck\_plugin-1.1.dist-info  
-rwxr-xr-x 1 root root 10459 Jan 23 13:11 sslcertcheck\_plugin.py

Is it right?

---

<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:** [January 26, 2020, 8:27pm UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/18 "2020-01-26T20:27:39Z")

</div>

You have it unzipped in one more directory - you have two directories custom.python.sslcertcheck\_plugin in the path.

It must look like this:

```auto
# ls -al /opt/dynatrace/oneagent/plugin_deployment/custom.python.sslcertcheck_plugin/
total 20
drwxrwxr-x 1 root root 222 Jan 16 15:41 .
drwxr-xr-x 1 root root 140 Jan 13 11:25 ..
drwxrwxr-x 1 root root 382 Jan 12 22:24 asn1crypto
drwxrwxr-x 1 root root 96 Jan 12 22:24 asn1crypto-1.3.0.dist-info
-rwxrwxr-x 1 root root 2277 Jan 12 22:21 plugin.json
-rwxrwxr-x 1 root root 2172 Jan 12 22:17 README.md
drwxrwxr-x 1 root root 82 Jan 12 22:24 sslcertcheck_plugin-1.0.dist-info
-rwxrwxr-x 1 root root 9458 Jan 16 15:41 sslcertcheck_plugin.

```

---

<div class="post-metadata">

**Author:** ![Dallas](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dallas/32/31233_2.png) [@Dallas](https://community.dynatrace.com/u/Dallas)\
**Post date:** [January 27, 2020, 7:08pm UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/19 "2020-01-27T19:08:21Z")

</div>

Hey Julius,

This is awesome. I have been asked about this type of feature before. Appreciate you for open sourcing this project!

Thanks

-Dallas

---

<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:** [January 27, 2020, 9:28pm UTC](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357/20 "2020-01-27T21:28:33Z")

</div>

Thanks! Happy to share.

[Next page](https://community.dynatrace.com/t/does-dynatrace-monitor-ssl-certificate-validation/21357.md?page=2)
