我正在尝试在Django应用程序中实现SSO。我有一个ubuntu 16.04 OS,Apache和WSGI和python 3.5.2,我安装的软件包:
xlmsec 1.3.3
lxml 4.5.1
pkg-config 1.5.1
python3-saml 1.9.0
以及xmlsec的所有依赖项:libxmlsec1-dev libxml2-dev libxmlsec1-openssl
我的服务器在试图安装xlmsec> = 1.3.7的代理后面(我没有对该服务器的完全访问权限),这会导致我出现连接错误,这就是为什么我使用1.3.3版本的原因。
一旦运行以下命令,我将收到错误消息:
python -c "import xmlsec"
func=xmlSecOpenSSLAppKeyLoadMemory:file=app.c:line=188:obj=unknown:subj=data != NULL:error=100:assertion:
func=xmlSecCheckVersionExt:file=xmlsec.c:line=185:obj=unknown:subj=unknown:error=19:invalid version:mode=exact;expected minor version=2;real minor version=2;expected subminor version=30;real subminor version=20
func=xmlSecOpenSSLInit:file=crypto.c:line=312:obj=unknown:subj=xmlSecCheckVersionExact:error=1:xmlsec library function failed:
func=xmlSecOpenSSLAppPkcs12Load:file=app.c:line=580:obj=unknown:subj=filename != NULL:error=100:assertion:
Traceback (most recent call last):
File "<string>", line 1, in <module>
SystemError: null argument to internal routine
我不确定这是否与错误的版本有关或与xlmsec问题有关(我已经尝试回滚到旧版本并遇到相同的问题)。
该问题与安装的libxmlsec1(ubuntu软件包)版本有关(版本为1.2.20,而xmlsec需要1.2.30)。只需删除旧版本并安装新版本即可。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句