python - M2Crypto: AttributeError for load_dynamic_engine() -


I am using M2Crypto-0.20.2. I want to use to create xmlrpc calls on SSL to create token based authentication from the Allen PKI client for the OpenSC project and engine.

I am trying to load PKCS # 11 engine and Aladdin module (see code below). But I get an error: Attribute error: M2Crypto import in the 'module' object has no attribute 'load_dynamic_engine'

  import, m2 m2.load_dynamic_engine ("dynamic", "/ usr / According to the local / ssl / m2Crypto documentation, this function should be available I / 2 /   

This is the document I am reading:

Can anyone tell me in the right document or how can the engines be loaded?

Thank you!

I myself The mass module is not used, so I can not give you a definitive answer, however, you should take a look at the module for some points. I am guessing that to load the engine provided by OpenSSL You should not use that code of load_dynamic_engine () , but load_dynamic () or load_openssl () . While loading the 3rd party module needs load_dynamic_engine () Will be


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -