# Use Dynatrace Built‑In SSL Certificate Expiration Checks

**URL:** <https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626>\
**Category:** Extensions\
**Tags:** ssl, google-cloud-platform, extensions\
**Created:** [February 27, 2020, 5:11pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626 "2020-02-27T17:11:48Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![larry\_roberts](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/larry_roberts/32/7131_2.png) [@larry\_roberts](https://community.dynatrace.com/u/larry_roberts)\
**Post date:** [February 27, 2020, 5:11pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/1 "2020-02-27T17:11:48Z")

</div>

_Summary:&nbsp;This post explains how Dynatrace automatically detects SSL certificate expiration for monitored endpoints. It outlines what is checked, how expiration data is shown, and how alerts can be configured._

During Perform 2020, I believe it was stated that certificate expiration checks were in the works in terms of out of the box for Dynatrace, if I heard it correctly. I believe it was just briefly mentioned without much detail.

We are actively moving more and more to GCP and would like to have such checks.

I know there is currently a [plugin out there on GitHub](https://github.com/juliusloman/dynatrace-oneagent-plugin-sslcertcheck) by Julius Loman (_thank you Julius!_) to do such checks, however I have not yet tried it. Curious if because this is a plugin, if it consumes custom metrics? I am also not sure if this plugin will work in a GCP environment.

Before I do try the plugin approach, I was wondering if I am recalling that above information correctly?

If so, is there a timeline or more in depth details that will be coming soon around this functionality?

Thanks!

---

<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:** [February 27, 2020, 6:49pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/2 "2020-02-27T18:49:39Z")

</div>

Just my “two cents” about my plugin - it does not consume any metrics, so it’s free also from Dynatrace license consumption. It only pushes events and metadata to processes.

At the moment it only verifies certificates on TCP ports on the host where OneAgent is running. I’ll extend it to cover also client-side keystores for certificates (jks at this time, probably also pfx/p12 in the future).

I’m not aware of any plans of Dynatrace having the check functionality built-in.

---

<div class="post-metadata">

**Author:** ![larry\_roberts](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/larry_roberts/32/7131_2.png) [@larry\_roberts](https://community.dynatrace.com/u/larry_roberts)\
**Post date:** [February 27, 2020, 10:03pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/3 "2020-02-27T22:03:27Z")

</div>

Thanks Julius! Appreciate the work on a plugin around this as well. I am 99% sure I heard something at Perform on stage specific to certificates expiring. Maybe I was hearing things which is very possible! lol.

---

<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:** [February 28, 2020, 7:16am UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/4 "2020-02-28T07:16:24Z")

</div>

Could be. Maybe [@Jakub M.](https://answers.dynatrace.com/users/15291/view.html) may bring some answers.

---

<div class="post-metadata">

**Author:** ![leon\_vanzyl](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/leon_vanzyl/32/21759_2.png) [@leon\_vanzyl](https://community.dynatrace.com/u/leon_vanzyl)\
**Post date:** [March 12, 2020, 3:07pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/5 "2020-03-12T15:07:52Z")

</div>

We have created an AG Plugin that checks Certs: [GitHub - mediro-ict/activegate\_python\_ssl\_plugin: This plugin checks the SSL certificates of hosts entered using the GUI and logs problems and custom Events on Dyantrace if the certificate is about to expire. · GitHub](https://github.com/mediro-ict/activegate_python_ssl_plugin)

NOTE: the latest version uses metrics and therefore consumes DDUs.

 ![SSLCert](https://global.discourse-cdn.com/dynatrace/original/3X/2/e/2e8a5e6906d61cd8ef369a2c9b0e543e0b95ae73.png)

---

<div class="post-metadata">

**Author:** ![larry\_roberts](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/larry_roberts/32/7131_2.png) [@larry\_roberts](https://community.dynatrace.com/u/larry_roberts)\
**Post date:** [March 12, 2020, 3:14pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/6 "2020-03-12T15:14:47Z")

</div>

Good stuff [@Leon Van Z.](https://answers.dynatrace.com/users/33542/view.html) ! I will check that out. It might be exactly what we are looking for and save me some work at the same time 😉

Thank you!

---

<div class="post-metadata">

**Author:** ![leon\_vanzyl](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/leon_vanzyl/32/21759_2.png) [@leon\_vanzyl](https://community.dynatrace.com/u/leon_vanzyl)\
**Post date:** [March 12, 2020, 3:58pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/7 "2020-03-12T15:58:37Z")

</div>

shot Larry!, let me know how We can improve it

---

<div class="post-metadata">

**Author:** ![andrew\_franklor](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@andrew\_franklor](https://community.dynatrace.com/u/andrew_franklor)\
**Post date:** [March 23, 2020, 6:25pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/8 "2020-03-23T18:25:26Z")

</div>

Julius - I love your approach of OneAgent plugin monitoring. I have webservers with 20+ IPs all apache instances listening to 443. GitHub readme lists the limitation: “Opened TCP port bindings are retrieved from OneAgent and only local TCP ports are checked. Listening IP address is provided by OneAgent. Currently OneAgent supplies 127.0.0.1 as the listening IP address regardless of the actual TCP port binding.”

Does this mean that the plugin knows what process owns a port, and will show the right cert on the process group, but may show 127.0.0.1 as the IP? Or do you mean that for boxes with multiple IPs and processes binding to 1 IP, the plugin can not tell process has the port?

---

<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:** [March 23, 2020, 8:12pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/9 "2020-03-23T20:12:09Z")

</div>

Actually.. it only shows 127.0.0.1 if the listening address is 0.0.0.0 (all interfaces). But if your service is listening on a particular IP, it will show the IP and the port.

So basically it looks like this:

 ![24276-1584994253638.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/8/8833fece156f845f21ffcd68ef310d2695a73e1a.png)

This listening port information is provided by OneAgent.

---

<div class="post-metadata">

**Author:** ![andrew\_franklor](https://avatars.discourse-cdn.com/v4/letter/a/6bbea6/32.png) [@andrew\_franklor](https://community.dynatrace.com/u/andrew_franklor)\
**Post date:** [March 24, 2020, 1:14pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/10 "2020-03-24T13:14:26Z")

</div>

Thanks for quick response, that looks great! We will give this a try, thanks for sharing!

---

<div class="post-metadata">

**Author:** ![larry\_roberts](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/larry_roberts/32/7131_2.png) [@larry\_roberts](https://community.dynatrace.com/u/larry_roberts)\
**Post date:** [April 1, 2020, 2:47pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/11 "2020-04-01T14:47:18Z")

</div>

Going to be at long last trying this out today. I will let you know the results.

---

<div class="post-metadata">

**Author:** ![leon\_vanzyl](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/leon_vanzyl/32/21759_2.png) [@leon\_vanzyl](https://community.dynatrace.com/u/leon_vanzyl)\
**Post date:** [April 1, 2020, 2:49pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/12 "2020-04-01T14:49:49Z")

</div>

cool, let me know

---

<div class="post-metadata">

**Author:** ![larry\_roberts](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/larry_roberts/32/7131_2.png) [@larry\_roberts](https://community.dynatrace.com/u/larry_roberts)\
**Post date:** [April 1, 2020, 2:49pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/13 "2020-04-01T14:49:50Z")

</div>

Going to be giving this one a try along with the one provided by [@Leon Van Z.](https://answers.dynatrace.com/users/33542/view.html) as well today and through tomorrow. Excited to see what both can do. Both of your contributions are _ **VERY MUCH APPRECIATED!** _

---

<div class="post-metadata">

**Author:** ![alexandre\_marl2](https://avatars.discourse-cdn.com/v4/letter/a/f0a364/32.png) [@alexandre\_marl2](https://community.dynatrace.com/u/alexandre_marl2)\
**Post date:** [April 4, 2020, 3:22pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/14 "2020-04-04T15:22:26Z")

</div>

It would be nice to have it out of the box !

Others competitor have it.

---

<div class="post-metadata">

**Author:** ![larry\_roberts](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/larry_roberts/32/7131_2.png) [@larry\_roberts](https://community.dynatrace.com/u/larry_roberts)\
**Post date:** [April 6, 2020, 11:25am UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/15 "2020-04-06T11:25:08Z")

</div>

I completely agree.

---

<div class="post-metadata">

**Author:** ![irakli\_natsvlis](https://avatars.discourse-cdn.com/v4/letter/i/edb3f5/32.png) [@irakli\_natsvlis](https://community.dynatrace.com/u/irakli_natsvlis)\
**Post date:** [June 3, 2020, 6:50am UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/16 "2020-06-03T06:50:40Z")

</div>

Hello everyone,

Do I understand correctly that plugins developed by [@Julius L.](https://answers.dynatrace.com/users/16467/view.html) [@Leon Van Z.](https://answers.dynatrace.com/users/33542/view.html) require deployment on _both_ AGs and the host where OneAgent is installed and they can’t be deployed on ActiveGates only?

Thanks

--

---

<div class="post-metadata">

**Author:** ![MaciejNeumann](https://avatars.discourse-cdn.com/v4/letter/m/5e9695/32.png) [@MaciejNeumann](https://community.dynatrace.com/u/MaciejNeumann)\
**Post date:** [July 29, 2021, 11:50am UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/17 "2021-07-29T11:50:19Z")

</div>

SSL certification expiration date verification is now available with HTTP monitors:

 ![ssl certification.png](https://global.discourse-cdn.com/dynatrace/original/3X/4/8/48eaa0801ee058fe68ddeede4cafc4214f83e8c8.png)

---

<div class="post-metadata">

**Author:** ![kedesai](https://avatars.discourse-cdn.com/v4/letter/k/96bed5/32.png) [@kedesai](https://community.dynatrace.com/u/kedesai)\
**Post date:** [March 8, 2022, 8:53pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/18 "2022-03-08T20:53:30Z")

</div>

Hi Julius,

Is there a way to check for the keystores expiry dates? Can we filter which certs we want to monitor?

Thanks,

Ketan

---

<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:** [March 9, 2022, 7:44am UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/19 "2022-03-09T07:44:20Z")

</div>

Hi&nbsp;[@kedesai](https://community.dynatrace.com/user/48405)&nbsp;,  
I’ve been thinking about adding the possibility to monitor keystores, but I gave up. Unfortunately, it’s not that easy to do it using Dynatrace OneAgent extension, because

- extensions run as unprivileged users, so there will be issues with accessing the keystore file which is typically owned by some application user
- many keystore types (JKS/CMS), require a JVM or a specific JVM (IBM JVM) to open them.
- you would need to configure the paths to the keystores anyway

I’ve decided not to implement this functionality.

---

<div class="post-metadata">

**Author:** ![kedesai](https://avatars.discourse-cdn.com/v4/letter/k/96bed5/32.png) [@kedesai](https://community.dynatrace.com/u/kedesai)\
**Post date:** [March 10, 2022, 9:43pm UTC](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626/20 "2022-03-10T21:43:29Z")

</div>

Hi Julius,

Thanks for your quick reply. How are you able to monitor the cert on [google.com](http://google.com). Per the process, we have to put the zip in two locations. one is in the:  
2.) Upload the zip file to your Dynatrace tenant in Settings \> Monitoring \> Monitored technologies \>&nbsp; **Custom plugins** &nbsp;and choose Upload plugin.

The other one goes to the location in the plugin\_deployment directory on the host.

3.) Unzip the zip file on OneAgents into /opt/dynatrace/oneagent/plugin\_deployment directory on hosts with OneAgents or to appropriate plug\_deployment directory if you have installed the agent into the non-default directory.

I have a specific case where I need to get an SSL cert expiry from a website but I am not able to get it. For example [adt.com](http://adt.com). I don’t have access to VM :).

Thanks again,

Ketan

[Next page](https://community.dynatrace.com/t/use-dynatrace-built-in-ssl-certificate-expiration-checks/18626.md?page=2)
