360Performance / dynatrace-plugin-certcheck

A Dynatrace Plugin for SSL Certificate validation
GNU General Public License v3.0
7 stars 2 forks source link

Error(No module named 'cryptography.hazmat.bindings._openssl') #3

Open anderslundin-kanari opened 3 years ago

anderslundin-kanari commented 3 years ago

Trying to get this up and running as a Activegate extension but are running into a problem. "Error(No module named 'cryptography.hazmat.bindings._openssl')"

Is there some requirement on the python installation on the ActiveGate machine?

reinhard-brandstaedter commented 3 years ago

Interesting, which Active Gate version are you using and on which platform? Is openssl installed on your machine?

anderslundin-kanari commented 3 years ago

In my head I wrote which platform (because I am sure it is important since there seems to be a linux .so file included) but apparently not in the text I wrote :) I am running Windows. Installed on another host and same result. No, openssl is not installed, I am guessing (and will try) that installing it will solve the problem however since it seemed like it is "included" for linux, I thought that maybe it should be for windows aswell?

anderslundin-kanari commented 3 years ago

And AG version is the latest one (.223)

reinhard-brandstaedter commented 3 years ago

OpenSSL depends on the OS AFAIK. So it might be required to install OpenSSL windows versions (e.g. from here: https://slproweb.com/products/Win32OpenSSL.html). I haven't tested any AG Plugins on Windows so far, though.

PieterLuttig commented 2 years ago

Hi Reinhard,

I am getting the same error on my Linux Active gate v1.247.210 after updating it.

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))

PieterLuttig commented 2 years ago

Hi Reinhard,

Do you know if your plugin v1.30 is supported on RHEL 7. This library(GLIBC_2.28) only applies to RHEL 8. The latest one for RHEL 7 is GLIBC_2.17, and this one is installed on all my servers.

reinhard-brandstaedter commented 2 years ago

@PieterLuttig I've added a plugin build for old GCLIB (built on CentOS7.9) to the 1.40 release. You might try this one if it works on your RHEL7 setup.

reinhard-brandstaedter commented 1 year ago

General note on OpenSSL bindings:

rbcoding commented 1 year ago

I am getting this error while installing on windows. I have installed Open SSL Error(cannot import name '_openssl' from 'cryptography.hazmat.bindings._rust' (unknown location))

TravisChinnappen commented 9 months ago

I also get this error now on linux rhel 8 servers Error(No module named 'cryptography.hazmat.bindings._constant_time'), but the below has been done OpenSSL is installed on the operating system use a recent CGLIB >= 2.28