我目前正在使用Django进行saml2登录,它使用djangosaml2。在尝试进行身份验证时,我从pysaml2
得到一个“签名失败”错误,我可以将其缩小为xmlsec1
产生的错误(见下文)。如果我理解错误是正确的,xmlsec1
无法将文件读取为base64。但是,如果我运行base64 /tmp/test.xml
,它会工作。我是不是遗漏了什么
$ xmlsec1 --verify /tmp/test_b64.xml
func=xmlSecBase64CtxDecodeByte:file=base64.c:line=403:obj=unknown:subj=unknown:error=12:invalid data:invalid data for 'inByte': actual=92 and expected base64 character
func=xmlSecBase64CtxDecode:file=base64.c:line=554:obj=unknown:subj=xmlSecBase64CtxDecodeByte:error=1:xmlsec library function failed:status=4
func=xmlSecBase64CtxUpdate:file=base64.c:line=261:obj=unknown:subj=xmlSecBase64CtxDecode:error=1:xmlsec library function failed:
func=xmlSecBase64Decode:file=base64.c:line=674:obj=unknown:subj=xmlSecBase64CtxUpdate:error=1:xmlsec library function failed:
func=xmlSecOpenSSLX509CertBase64DerRead:file=x509.c:line=1705:obj=unknown:subj=xmlSecBase64Decode:error=1:xmlsec library function failed:
func=xmlSecOpenSSLX509CertificateNodeRead:file=x509.c:line=956:obj=x509:subj=xmlSecOpenSSLX509CertBase64DerRead:error=1:xmlsec library function failed:
func=xmlSecOpenSSLX509DataNodeRead:file=x509.c:line=886:obj=x509:subj=xmlSecOpenSSLX509CertificateNodeRead:error=1:xmlsec library function failed:node=X509Certificate
func=xmlSecOpenSSLKeyDataX509XmlRead:file=x509.c:line=663:obj=x509:subj=xmlSecOpenSSLX509DataNodeRead:error=1:xmlsec library function failed:
func=xmlSecKeyInfoNodeRead:file=keyinfo.c:line=121:obj=x509:subj=xmlSecKeyDataXmlRead:error=1:xmlsec library function failed:node=X509Data
func=xmlSecKeysMngrGetKey:file=keys.c:line=1234:obj=unknown:subj=xmlSecKeyInfoNodeRead:error=1:xmlsec library function failed:node=KeyInfo
func=xmlSecDSigCtxProcessKeyInfoNode:file=xmldsig.c:line=793:obj=unknown:subj=unknown:error=45:key is not found:details=NULL
func=xmlSecDSigCtxProcessSignatureNode:file=xmldsig.c:line=508:obj=unknown:subj=xmlSecDSigCtxProcessKeyInfoNode:error=1:xmlsec library function failed:
func=xmlSecDSigCtxVerify:file=xmldsig.c:line=346:obj=unknown:subj=xmlSecDSigCtxProcessSignatureNode:error=1:xmlsec library function failed:
Error: signature failed
ERROR
SignedInfo References (ok/all): 0/0
Manifests References (ok/all): 0/0
Error: failed to verify file "/tmp/test_b64.xml"
目前没有回答
相关问题 更多 >
编程相关推荐