Questions tagged [xmlsec1]
20 questions
13
votes
1 answer
Could not find xmlsec1 config. Are libxmlsec1-dev and pkg-config installed?
This is happing especially on RHEL
Already installed this packages yum install libxml2-devel xmlsec1-devel xmlsec1-openssl-devel libtool-ltdl-devel
Could not find xmlsec1 config. Are libxmlsec1-dev and pkg-config installed
Command…

Shiva
- 131
- 1
- 1
- 5
8
votes
3 answers
Receiving "error: xmlsec1 is not installed or not in path.", when pip installing xmlsec
I'm on MacOS 10.15.7 Catalina, and I am currently using Python 3.8.4, with Pip 21.1.1
For whatever reason, I keep getting an error when I try to run python -m pip install xmlsec
Error in text form:
➜ python -m pip install xmlsec
Collecting xmlsec
…

Rachel Sheikh
- 81
- 1
- 3
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
4
votes
2 answers
XML signature with using xmlsec1
I tried to use the following command to sign my testing xml with the P12 private key, and got the following errors:
xmlsec1 --sign --output tested.payload.xml --pkcs12 SenderCert/sender.p12 --pwd password tested.xml
Error: failed to find default…

Alex_C
- 41
- 2
3
votes
0 answers
SAML-xmlsec1 verification
I signed my saml response xml with xmlsec command:
xmlsec1 --sign --privkey-pem keys/privkey.pem,keys/cert.pem --id-attr:ID "urn:oasis:names:tc:SAML:2.0:protocol:Assertion" --output signed_res.xml saml_response.xml
Here is my XML:

Deepak Verma
- 653
- 1
- 10
- 24
2
votes
1 answer
How to force libxml1 to ignore cert in file and use a cert I pass it on the command line?
I am trying to verify a signed XML SAML Response. It contains a spoofed cert in the XML.
I have the known real cert in a PEM file.
When I run
xmlsec1 --verify --pubkey-cert-pem pubkey-real.pem \
--id-attr:ID…

Krystian Cybulski
- 10,789
- 12
- 67
- 98
2
votes
1 answer
Verifying Windows 8 inapp-purchase receipt with xmlsec1
How can I verify Win8 inapp-purchase receipt, using xmlsec1? Here is what I'm tyring to do:
My sample receipt (saved in file receipt.xml):

DrTyrsa
- 31,014
- 7
- 86
- 86
1
vote
1 answer
Getting "KEY-NOT-FOUND" with xmlsec1 on macos
My attempt to sign a simple XML document with xmlsec1 is failing on MacOS due to:
$ xmlsec1 --sign --output doc-signed.xml --privkey-pem keysncerts/userkey.pem doc.xml
Enter password for "keysncerts/userkey.pem" file:
Signature status:…

NaderNader
- 1,038
- 1
- 11
- 16
1
vote
1 answer
Why does Python cryptography and xmlsec1 produce different signatures
I am working on an integration with an xml based API. I am able to sign xml requests successfully using xmlsec1 like this...
xmlsec1 --sign --lax-key-search --privkey-pem test_privkey.pem,test_cert.pem --output xml/signed.xml…

Bafsky
- 761
- 1
- 7
- 16
1
vote
2 answers
xmlsec1 not found on ibm-cloud deployment
I am having hard time to install a python lib called python3-saml
To narrow down the problem I created a very simple application on ibm-cloud and I can deploy it without any problem, but when I add as a requirement the lib python3-saml
I got an…
1
vote
1 answer
xmlsec1 saml signing: failed to find default node with name="Signature"
I am having a bit of trouble signing the following saml message:

imaibou
- 122
- 1
- 10
1
vote
1 answer
xmlsec1 sign failed - id
In the SignInfo node I have
...
It refers to the node below:
Command:
xmlsec1 --sign…

Dustin Sun
- 5,292
- 9
- 49
- 87
1
vote
1 answer
xmlsec library - obtain subject of signing key
I am using the xmlsec library to verify the signature of an SAML assertion. My code is almost identical to the verify4.c example provided on the xmlsec web page.
I am linking against the xmlsec-openssl lib, so using openssl as the crypto engine.
I…

harmic
- 28,606
- 5
- 67
- 91
0
votes
0 answers
How to install python xmlsec on Mac M1 Max arm64?
I'm trying to install my django project requirements.txt but got this error:
Building wheel for xmlsec (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for xmlsec (pyproject.toml) did not run successfully.
│…

Alberto Sanmartin Martinez
- 970
- 13
- 37
0
votes
0 answers
Xmlsec - key is not found [ECDSA, DSA]
I am trying to sign an XML, I can successfully do this with RSA, but can't seem to sign it with ECDSA or DSA. For this example, I am trying ECDSA. Any help will be appreciated.
The error I am…

Overklog
- 109
- 3
- 10