letoams / hash-slinger

GNU General Public License v2.0
50 stars 14 forks source link

not calling m2crypto in Debian Python 3 (script 3.1) #34

Closed Michael-MCP closed 2 years ago

Michael-MCP commented 3 years ago

I have two systems, one (ubuntu AMD64) would run (version 2.7) on python 2 the other (Ubuntu ARM64) would not run either version (of the script) on either version (of python). below running version 3.1 copied from latest Git source on python 3:

ARM:

python3 tlsa3.1.py --create --port 443 --protocol tcp --certificate /etc/letsencrypt/live/example.com/cert.pem --usage 3 --selector 1 --mtype 1 example.com
Could not verify local certificate: name 'BIO' is not defined.

Libraries:

AMD:

Traceback (most recent call last):
  File "tlsa3.1.py", line 34, in <module>
    from M2Crypto import X509, SSL, BIO, m2
ImportError: No module named 'M2Crypto'

Libraries:

However I have/had m2crypto library on both of these systems. Again this was running the latest (3.1) code from GitHub in python3.


looking back at the 2.7 version.... this was running fine until I updated my (Ubuntu AMD64)python2.7 libraries now neither machine or version of python will run.

what libraries changed on the update (Ubuntu AMD64) ?

Previously:

I see this was already raised and marked as fixed in https://github.com/letoams/hash-slinger/issues/20 but the new code is for python3, so have opened a new ticket.

stoecker commented 3 years ago

I'd expect there should be a python3-m2crypto to let the current python3 version work. At least that's what I have on openSUSE and Ubuntu uses the same naming.