# Configuration-less Advanced SSL Certificate Check Plugin

**URL:** <https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199>\
**Category:** Dynatrace Tips\
**Tags:** data-privacy-and-product-security, knowledge-sharing, extensions, synthetic-monitoring\
**Created:** [January 12, 2021, 2:00pm UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199 "2021-01-12T14:00:48Z")\
**Posts on this page:** 20\
**Page:** 4

<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:** [June 8, 2022, 12:29pm UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/61 "2022-06-08T12:29:27Z")

</div>

[@andre\_vdveen](https://community.dynatrace.com/user/11931),

Thanks! Currently have two separate environments, installed independently, giving the following error:

_Error(cannot import name ‘x509’ from ‘cryptography.hazmat.bindings.\_rust’ (unknown location))_

Trying to figure it out 😉

---

<div class="post-metadata">

**Author:** ![avdveen](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@avdveen](https://community.dynatrace.com/u/avdveen)\
**Post date:** [June 8, 2022, 12:43pm UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/62 "2022-06-08T12:43:20Z")

</div>

I see the same now; my previous attempts were on older AG versions I think, not the latest where it is using Python 3.8.

---

<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:** [June 8, 2022, 2:12pm UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/63 "2022-06-08T14:12:33Z")

</div>

[@andre\_vdveen](https://community.dynatrace.com/user/11931),

Thanks for confirming. Still haven’t got the solution. Attaching more logs, might be easier for [@r\_weber](https://community.dynatrace.com/user/35901) or others…

```markup
2022-06-07 15:06:54.488 UTC [00001330] severe [native] 4912(ThreadPoolExecutor-0_0) - [set_full_status] cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location)^M
 Traceback (most recent call last):^M
   File "C:\ProgramData/dynatrace/remotepluginmodule/agent/runtime/engine_unzipped\ruxit\plugin_state_machine.py", line 336, in _execute_next_task^M
     self._query_plugin()^M
   File "C:\ProgramData/dynatrace/remotepluginmodule/agent/runtime/engine_unzipped\ruxit\plugin_state_machine.py", line 663, in _query_plugin^M
     self._plugin_run_data = self._create_plugin_run_data()^M
   File "C:\ProgramData/dynatrace/remotepluginmodule/agent/runtime/engine_unzipped\ruxit\plugin_state_machine.py", line 636, in _create_plugin_run_data^M
     plugin_module = importlib.import_module(self.metadata["source"]["package"])^M
   File "C:\Program Files/dynatrace/remotepluginmodule/agent/plugin/python3.8\importlib\ __init__.py", line 127, in import_module^M
     return _bootstrap._gcd_import(name[level:], package, level)^M
   File "<frozen importlib._bootstrap>", line 1014, in _gcd_import^M
   File "<frozen importlib._bootstrap>", line 991, in _find_and_load^M
   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked^M
   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked^M
   File "<frozen importlib._bootstrap_external>", line 843, in exec_module^M
   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed^M
   File "C:\Program Files/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.certcheck\certcheck.py", line 28, in <module>^M
     from OpenSSL import SSL^M
   File "C:\Program Files/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.certcheck\OpenSSL\ __init__.py", line 8, in <module>^M
     from OpenSSL import crypto, SSL^M
   File "C:\Program Files/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.certcheck\OpenSSL\crypto.py", line 8, in <module>^M
     from cryptography import utils, x509^M
   File "C:\Program Files/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.certcheck\cryptography\x509\ __init__.py", line 6, in <module>^M
     from cryptography.x509 import certificate_transparency^M
   File "C:\Program Files/dynatrace/remotepluginmodule/plugin_deployment/custom.remote.python.certcheck\cryptography\x509\certificate_transparency.py", line 10, in <module>^M
     from cryptography.hazmat.bindings._rust import x509 as rust_x509^M
 ImportError: cannot import name 'x509' from 'cryptography.hazmat.bindings._rust' (unknown location)^M

```

---

<div class="post-metadata">

**Author:** ![avdveen](https://avatars.discourse-cdn.com/v4/letter/a/ed8c4c/32.png) [@avdveen](https://community.dynatrace.com/u/avdveen)\
**Post date:** [June 9, 2022, 2:04pm UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/64 "2022-06-09T14:04:29Z")

</div>

[@AntonioSousa](https://community.dynatrace.com/user/17213)&nbsp;I see someone else already logged an issue for this:

> <https://github.com/360Performance/dynatrace-plugin-certcheck/issues/9>
>
> Hi, I am trying to setup this extenstion to test it out. I am running into an is…sue when activating the extension in Dynatrace. See the topic name. I am running the latest version of the Activegate (Windows locally on laptop) and installed the latest version of OpenSSL. Any ideas?

I tried to get the necessary installed on my Windows host, but alas it is still not working.

---

<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:** [June 9, 2022, 4:49pm UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/65 "2022-06-09T16:49:40Z")

</div>

I have also tried some more tricks, but have not managed to solve the issue.

One thing that does surprise me is the involvement of “certificate\_transparency”. It shouldn’t be needed, and maybe going to an older version of openssl might help. Maybe [@r\_weber](https://community.dynatrace.com/user/35901) might help diagnosing this?

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [July 11, 2022, 12:25pm UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/66 "2022-07-11T12:25:51Z")

</div>

I noticed that a recent fix in the Dynatrace API when reading problems had an impact on the plugins ability to check for open problems correctly. The “fixed” behavior was a string-length limitation in the problem text selector of the API that didn’t exist before.

This prevented the plugin from refreshing open problems and problems would automatically time out even though the error condition still existed (the cert was still about to expire).

If you have noticed this behavior please update the plugin to the [latest version](https://github.com/360Performance/dynatrace-plugin-certcheck/releases/tag/1.19).

---

<div class="post-metadata">

**Author:** ![Karolina\_Linda](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/karolina_linda/32/36089_2.png) [@Karolina\_Linda](https://community.dynatrace.com/u/Karolina_Linda)\
**Post date:** [July 11, 2022, 7:45pm UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/67 "2022-07-11T19:45:07Z")

</div>

Thanks a lot, Reinhard, for getting back with the update!&nbsp;:star\_struck:

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [September 14, 2022, 9:02am UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/68 "2022-09-14T09:02:24Z")

</div>

## New Version 1.30 Released

I have released a new version of my plugin to overcome some limitations that seem to have been introduced with the new feature of on-demand executions. Prior to this version it happened that we couldn’t attach problems to disabled monitors and thus you would not get any problem alerts.

Using configured but disabled synthetic monitors for the plugin’s SSL check only is an intended way to save on DDU consumption (especially when checking lots of certificates) or where frequent synthetic checks are not required.

This plugin version now fully supports the long-interval checks (24hrs) of certificates also on disabled monitors.

You can find the release [here](https://github.com/360Performance/dynatrace-plugin-certcheck/releases/tag/1.30).

---

<div class="post-metadata">

**Author:** ![pieter\_luttig](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pieter_luttig/32/37241_2.png) [@pieter\_luttig](https://community.dynatrace.com/u/pieter_luttig)\
**Post date:** [September 21, 2022, 9:20am UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/69 "2022-09-21T09:20:45Z")

</div>

After updating to v1.30 the plugin has stopped working. I get the below error.

(I am running AG v1.247.210 on REHL 7.)

_Error(/usr/lib64/libc.so.6: version `GLIBC\_2.28’ not found (required by /opt/dynatrace/remotepluginmodule/plugin\_deployment/custom.remote.python.certcheck/cryptography/hazmat/bindings/\_rust.abi3.so))_

Is v1.30 supported on RHEL 7? This library(GLIBC\_2.28) seems to be only available in RHEL 8. The latest version for RHEL 7 is GLIBC\_2.17.

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [September 21, 2022, 3:29pm UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/70 "2022-09-21T15:29:56Z")

</div>

Hi&nbsp;[@pieter\_luttig](https://community.dynatrace.com/user/30846)&nbsp;,

isn’t RHEL7 EOL already?

I’m building the plugin on Debian Buster and Stretch images with Python 3.8 support. Since openssl has native dependencies (glibc) you might need to rebuild the plugin on a RHEL7 machine.  
Unfortunately I can not pre-build it for all possible platforms

---

<div class="post-metadata">

**Author:** ![pieter\_luttig](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pieter_luttig/32/37241_2.png) [@pieter\_luttig](https://community.dynatrace.com/u/pieter_luttig)\
**Post date:** [September 22, 2022, 6:31am UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/71 "2022-09-22T06:31:58Z")

</div>

Hi&nbsp;[@r\_weber](https://community.dynatrace.com/user/35901)&nbsp;,

No RHEL7 is only EOL June 2024.

Sure understood, will rebuild on RHEL7 thanks.

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [September 29, 2022, 10:44am UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/72 "2022-09-29T10:44:57Z")

</div>

## New Version 1.40 Released

I have pushed a new version of the plugin which is mainly addressing performance for large installations with hundred’s of checked endpoints. I introduced concurrent execution which should speed up the total execution of individual check runs by a factor 7-10.  
(Thanks&nbsp;[@ct\_27](https://community.dynatrace.com/user/38037)&nbsp;for the feedback!)

You can find the release [here](https://github.com/360Performance/dynatrace-plugin-certcheck/releases/tag/1.40).

---

<div class="post-metadata">

**Author:** ![ct\_27](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ct_27/32/10499_2.png) [@ct\_27](https://community.dynatrace.com/u/ct_27)\
**Post date:** [September 29, 2022, 3:40pm UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/73 "2022-09-29T15:40:02Z")

</div>

WAWHOO!! can’t wait to try it.&nbsp; The version we’re running now does 450 SSL checks in 21 seconds and 899 in 42 seconds. Quite linear.&nbsp; &nbsp;Can’t wait to see how many 1.4 can do.

Running RedHat 8.6 on a 4 core 64-bit and 4GB of memory.

---

<div class="post-metadata">

**Author:** ![jaysahota](https://avatars.discourse-cdn.com/v4/letter/j/ecccb3/32.png) [@jaysahota](https://community.dynatrace.com/u/jaysahota)\
**Post date:** [October 5, 2022, 3:05am UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/74 "2022-10-05T03:05:04Z")

</div>

Hi all,  
encountering the same issue on Linux AG, it’s working well in Dev environment (Rhel version 8 or above) but not in Prod Linux AG (version 7.9).&nbsp;  
Once of the dependency in Linux AG is “glibc” version. minimum version required for extension to execute is GLIBC\_2.25. Supported&nbsp; version for GLIBC are:

|RHEL 8.4&nbsp; | RHEL 7.9

|2.28&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; | 2.17

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [October 5, 2022, 10:48am UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/75 "2022-10-05T10:48:24Z")

</div>

Hi&nbsp;[@jaysahota](https://community.dynatrace.com/user/45746)&nbsp;,

please try the \_old\_gclib build of the plugin. I built this on CentOS 7.9 which should reflect RHEL 7 and the old gclib.  
You can find the [plugin build in the 1.40 release](https://github.com/360Performance/dynatrace-plugin-certcheck/releases/tag/1.40)

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [October 5, 2022, 10:53am UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/76 "2022-10-05T10:53:20Z")

</div>

[@pieter\_luttig](https://community.dynatrace.com/user/30846)&nbsp;you can now find a specific build for older gclib versions on the [1.4 release page](https://github.com/360Performance/dynatrace-plugin-certcheck/releases/tag/1.40), please try if this works for you.

---

<div class="post-metadata">

**Author:** ![pieter\_luttig](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/pieter_luttig/32/37241_2.png) [@pieter\_luttig](https://community.dynatrace.com/u/pieter_luttig)\
**Post date:** [October 5, 2022, 12:13pm UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/77 "2022-10-05T12:13:55Z")

</div>

[@r\_weber](https://community.dynatrace.com/user/35901)&nbsp;just tried it out now, and I am getting the below.

_Error(/usr/lib64/libc.so.6: version `GLIBC\_2.25’ not found (required by /opt/dynatrace/remotepluginmodule/plugin\_deployment/custom.remote.python.certcheck/cryptography/hazmat/bindings/\_openssl.abi3.so))_

---

<div class="post-metadata">

**Author:** ![dave\_vos](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@dave\_vos](https://community.dynatrace.com/u/dave_vos)\
**Post date:** [October 5, 2022, 12:57pm UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/78 "2022-10-05T12:57:14Z")

</div>

Just did the same, with the same result. Error(/lib64/libc.so.6: version `GLIBC\_2.25’ not found (required by /apps/tapm/remotepluginmodule/plugin\_deployment/custom.remote.python.certcheck/cryptography/hazmat/bindings/\_openssl.abi3.so))

---

<div class="post-metadata">

**Author:** ![r\_weber](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/r_weber/32/24884_2.png) [@r\_weber](https://community.dynatrace.com/u/r_weber)\
**Post date:** [October 5, 2022, 1:00pm UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/79 "2022-10-05T13:00:16Z")

</div>

What minor version of RHEL are you? 7.4? This has been built with CentOS 7.9 (should match RHEL7.9) the latest update in the 7.x release.

---

<div class="post-metadata">

**Author:** ![ct\_27](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/ct_27/32/10499_2.png) [@ct\_27](https://community.dynatrace.com/u/ct_27)\
**Post date:** [October 5, 2022, 1:08pm UTC](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199/80 "2022-10-05T13:08:20Z")

</div>

Just wanted to follow-up. Everything is running well.&nbsp; We have a total of 1,030 SSL checks running across 4 configurations (SSL5, SSL15, SSL29, SSL29\_2), which are spread out over ~~3~~ &nbsp;1 ActiveGates (Threading at 20 got us down from 3 to 1).&nbsp; Everything is completing within the 1 minute timeframe.&nbsp; Problems are now remaining open (not closing after 10 minutes) thus the cross-configuration bug is fixed.

Next we’re switching over to using the SSLCheckExpire tag to give teams more flexibility.

[Previous page](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199.md?page=3)

[Next page](https://community.dynatrace.com/t/configuration-less-advanced-ssl-certificate-check-plugin/21199.md?page=5)
