xmlsec

how to define a crypto library for xmlsec..

I want to write XML signature verification code in C using any available open source libraries.I am trying to use xmlsec. I installed the dependency libraries mentioned in http://www.zlatkovic.com/libxml.en.html. but when I try to compile the example code given in http://www.aleksey.com/xmlsec/api/xmlsec-notes-verify-x509.html , I am get...

Does xmlsec returns a 0 on exit?

I need to know, if xmlsec returns 0 if file is well authenticated? ...

How to generate DigestValue and SignatureValue for enveloped XML Signature using PHP/linux tool

Hi, i have been trying to find some examples on how to generate DigestValue and SignatureValue for XML signature (WSDL). Below is a sample SOAP for the application: <?xml version="1.0" encoding="UTF-8"?> <soapenv:Envelope xmlns:SOAP-SEC="http://schemas.xmlsoap.org/soap/security/2000-12" xmlns:soapenv="http://schemas.xmlsoap.org/soap/en...

Loading a RSA private key from memory using libxmlsec

Hello, I'm currently using libxmlsec into my C++ software and I try to load a RSA private key from memory. To do this, I searched trough the API and found this function. It takes binary data, a size, a format string and several PEM-callback related parameters. When I call the function, it just stucks, uses 100% of the CPU time and nev...

Disable debug output in libxml2 and xmlsec

Hi, In my software, I use libxml2 and xmlsec to manipulate (obviously) XML data structures. I mainly use XSD schema validation and so far, it works well. When the data structure input by the client doesn't match the XSD schema, libxml2 (or xmlsec) output some debug strings to the console. Here is an example: Entity: line 1: parser er...

How to verify an XML digital signature in Cocoa?

I have a C# application that uses XML digital signatures to sign license files. I've used the standard Microsoft approach described here. I'm porting the application to the MAC and need to verify the signature. My general question is how best to do this? This is what I've done: I've used macport to install Aleksey's xmlsec1 library...

Convert SSL private key to a string

From pkcs12 file, I extracted the private key and cert using the following - PKCS12_parse(p12, argv[2], &privatekey, &cert, &ca); Now, I need to use the privatekey and cert to sign an XML using xmlsec libraries. However, xmlSecCryptoAppKeyLoad() expects the key in const char* format. How do I do the conversion? Or, can I use xmlSecC...