iclab / centinel

http://iclab.org/
MIT License
34 stars 17 forks source link

Error: M2Crypto could not be imported. TLS fingerprinting will be disabled. #194

Closed sneft closed 9 years ago

sneft commented 9 years ago

We get the following error on an RPi after installing centinel 1.5.4.1.

Note: We have an identical RPi running 1.5.4.1 and M2Crypto 0.22.3 which does not give these warnings.

sudo centinel --daemonize
WARNING:root:M2Crypto could not be imported. TLS fingerprinting will be disabled.

max@rp7 ~ $ pip freeze
centinel==0.1.5.4.1
centinel-dev==0.1.5.3
cffi==1.2.1
cryptography==1.0
dnspython==1.12.0
enum34==1.0.4
idna==2.0
ipaddress==1.0.14
M2Crypto==0.22.5
ndg-httpsclient==0.4.0
numpy==1.6.2
pifacecommon==4.1.2
pifacedigitalio==3.0.4
pyasn1==0.1.8
pycparser==2.14
pycurl==7.19.5.1
pygame===1.9.1release
pygobject==3.8.2
python-apt==0.8.8.2
requests==2.8.1
RPi.GPIO==0.5.11
six==1.9.0
trparse==0.2.1
unattended-upgrades==0.1
urllib3==1.9.1

max@rp7 ~ $ sudo centinel --sync
WARNING:root:M2Crypto could not be imported. TLS fingerprinting will be disabled.
2015-10-29 16:07:14,515 backend.py(line 283) INFO: Starting sync with https://server.iclab.org:8082
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:100: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:100: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:100: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
2015-10-29 16:07:36,099 backend.py(line 394) INFO: Finished sync with https://server.iclab.org:8082
rpanah commented 9 years ago

@sneft this has nothing to do with m2crypto, it shows you this error because the default Python OpenSSL library is too old, and you don't have PyOpenSSL to provide a real SSL context. This means that the SSL/TLS still works, but it is not the latest version.

sneft commented 9 years ago

We just realized that one of the other RPis (not the one shown here) that we upgraded last week is in fact running jessie, hence why we don't see these warnings on that device. Closing.