Questions tagged [xmlsec]
112 questions
26
votes
2 answers
Wrong digest value for xml signatures using Java XML Digital Signature API
I need to send a signed XML file to a government agency in Brazil. The problem is that the digest calculated by my Java code (using the Java XML Digital Signature API is different from the one generated with another tool like XMLSEC.
Here's the code…

Andre
- 3,874
- 3
- 35
- 50
12
votes
10 answers
Can't install xmlsec using PIP command
pip install xmlsec commands throws the below error.
ERROR: Command errored out with exit status 1:
command: /home/xxx/PycharmProjects/saml_impl/saml_impl/venv/bin/python…

Sathiamoorthy
- 8,831
- 9
- 65
- 77
11
votes
3 answers
Can't install xmlsec via pip
I'm getting the following when running pip install xmlsec in macOS Big Sur 11.3.1:
Building wheels for collected packages: xmlsec
Building wheel for xmlsec (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command:…

David Masip
- 2,146
- 1
- 26
- 46
11
votes
2 answers
Python flask saml throwing saml2.sigver.SigverError Error Message
Has anyone succesfully implemented flask-saml using Windows as dev environment, Python 3.6 and Flask 1.0.2?
I was given the link to the SAML METADATA XML file by our organisation and had it configured on my flask app.
app.config.update({
…

cloudviz
- 971
- 4
- 15
- 40
11
votes
6 answers
cxf + wss4j + maven NoSuchMethod error
trying to use the cxf+wss4j using maven. Created both the service and client without any compilation issues. The service runs fine in tomcat.
Issue:
When I run the client code, I get "java.lang.NoSuchMethodError:…

Balaji Krishnan
- 1,007
- 3
- 12
- 29
7
votes
1 answer
xmlsec fails to verify signature
I am trying to verify XML (attached on the bottom of the question) signature with xmlsec1 utility. However, when executing a command
xmlsec1 --verify test.xml
I am getting following stack…

Artur Rychlewicz
- 495
- 6
- 16
7
votes
3 answers
How to add namespace while signing XML file using javax.xml.crypto.dsig.*?
I'm trying to sign an xml file using enveloped signature and javax.xml.crypto.dsig.* classes. As a result I get file with correct Signature content but with no namespace defined. How can I add xmlns:ds="http://www.w3.org/2000/09/xmldsig#" namespace…

jasiustasiu
- 1,468
- 2
- 20
- 28
6
votes
1 answer
ERROR Could not build wheels for xmlsec, which is required to install pyproject.toml-based projects
I am having an error when trying to install Rasa X in local mode form Terminal. Using Python 3.7.4 and pip version 21.3.1. Using Mac.
Building wheels for collected packages: xmlsec
Building wheel for xmlsec (pyproject.toml) ... error
ERROR:…

uk_butterfly
- 93
- 1
- 2
- 8
5
votes
3 answers
XML signature verification library in C?
Are there any available libraries in C language to verify XML signatures? I could only find one library for C++ from http://santuario.apache.org/cindex.html .

LoyalBanana
- 183
- 6
- 17
5
votes
2 answers
How to sign XML with xmlsec (or other more appropriate package)
I start with an XML like this one:
myXML="""
…

Dean MacGregor
- 11,847
- 9
- 34
- 72
5
votes
1 answer
How to install xmlsec1 on windows
I am using djangosaml2 and pysaml2 for sso authentication using SAML.
Pysaml2 requires xmlsec1 for security assertions.
I am able to install xmlsec1 on ubuntu 14.04. everything is working fine.
For windows platform, I am not able to install xmlsec1…

sachin27
- 145
- 3
- 13
5
votes
1 answer
xmlsec1 sign works on command line but fails on Python code
I'm trying to sign a XML file using pyxmlsec/xmlsec/libxml2 but it fails (sigCtx->signValueNode == NULL:error=100:assertion).
When I run from command line it works smoothly:
xmlsec1 sign --output signed.xml --pkcs12 c.pfx --pwd mypwd…

renatogp
- 75
- 7
4
votes
0 answers
Mac: Failed building wheel for xmlsec
Attempting to spin up OneLogin's sample Flask project and getting:
Failed to build xmlsec
ERROR: Could not build wheels for xmlsec which use PEP 517 and cannot be installed directly
While trying to install dependancies. I have tried everything I…

PittCaleb
- 41
- 5
4
votes
1 answer
Get cert & key for python signxml from a PKS file
I used following command to get cert & key from a pks file.
openssl pkcs12 -in ../my.pfx -nocerts -out my.key
openssl pkcs12 -in ~/my.pfx -clcerts -nokeys -out cert.pem
However I keep getting error. I suspect my.key is not correct. How to…

Dustin Sun
- 5,292
- 9
- 49
- 87
4
votes
0 answers
xmlsec with AES-GCM
I have compiled the newest release of XMLSec from https://www.aleksey.com/xmlsec/news.html in a cygwin enviroment.
Now i am following this example to encrypt a XML file using a session key and digital signatures.…

chenino
- 454
- 2
- 7
- 19