Questions tagged [xmlseclibs]

xmlseclibs is a library written in PHP for working with XML Encryption and Signatures.

xmlseclibs is a library written in PHP for working with XML Encryption and Signatures.

xmlseclibs requires PHP version 5 or greater.

The author of xmlseclibs is Rob Richards.

xmlseclibs is being used in many different software, one of them is simpleSAMLphp.

References:

https://code.google.com/p/xmlseclibs/

22 questions
1
vote
2 answers

Which is the proper XML exclusive canonicalization?

I'm using xmlseclibs to try and sign a SOAP document, but it does not seem to canonicalize things in the same way depending on whether I'm signing or validating. I'll give you an example. This is the XML I am trying to sign:
soapergem
  • 9,263
  • 18
  • 96
  • 152
1
vote
0 answers

Verify Windows Phone 8 In-App Purchase in PHP

I have spent the last two days figuring out how to verify WP8 in-app purchases in PHP. After no luck of finding any samples, I found the library called "xmlseclibs". While their example signed XML works nicely, it always seems to fail validating…
Dejan Pelzel
  • 359
  • 1
  • 3
  • 5
0
votes
0 answers

Canonicalization node not closed properly

TL;DR node winds up with too many children when using wse-php I'm using wse-php to sign a SOAP request. I've used plain XmlSecLib to sign Saml in the past, but when using wse-php to construct my security node and sign a…
ginc
  • 1
  • 2
0
votes
0 answers

Consume WebService using RobRichards resources

I have to consume an ASP.net webservice. I have the definition of it in url: https://wsproves.orgt.diba.cat/AutoliquidacioGenerica/AutoliquidacioGenericaService.svc/mex?singleWsdl I need to call method called ConsultaAutoliquidacio. A…
0
votes
2 answers

simplesamlphp fails because mcrypt library not available in Linux 7

We are trying to run simplesamlphp as an SP on RedHat Linux 7. The code is failing with a HP Fatal error: Call to undefined function mcrypt_module_open(). simplesamlphp uses xmlseclibs 1.3.1, which in turn uses mcrypt, and mcrypt is not…
0
votes
1 answer

signing xml in php with xmlseclibs gives bad signature

I use xmlseclibs v.1.3.1 Here is how I try to sign my xml $document = new DOMDocument(); $request = $document->createElement('paymentRequest'); $xmlnsxsi = $document->createAttribute('xmlns:xsi'); $xmlns =…
Buar
  • 11
  • 7
-1
votes
1 answer

How can i add Signature to a specific place in XMLdocument?

I have XML document:
slavo
  • 1
  • 1
1
2