Questions tagged [xml-dsig]

XML digital signature is a standard for representing digital signatures as XML. While it can be used to sign other data, it is mainly used to sign XML documents.

XML digital signature is defined in XML Signature Syntax and Processing.

The standard mainly covers the following topics:

  • signature representation

  • definition of signed data

  • key references

  • signature generation process

106 questions
1
vote
1 answer

How to check if public X509Certificate is trusted

I've signed XML which I validate by code below 1.0.2 454589
koa73
  • 861
  • 2
  • 10
  • 27
1
vote
1 answer

How to change canonicalization method

does anyone know how to change the CanonicalizationMethod property in xadesjs? I know it is using xmldsigjs underneath but I cannot find a solution to change it. I mean the CanonicalizationMethod for the whole SignedInfo property (not the transforms…
losik123
  • 580
  • 5
  • 20
1
vote
0 answers

Sign Xml using PKCS11 interop

I want to sign XML using the pkcs11Interop library, I am using below code to sign XML but signature verification fails. when I use System.Security.Cryptography.Xml.SignedXml to sign it passes signature verification. The DigestValue generated by my…
Prashanth
  • 507
  • 5
  • 25
1
vote
0 answers

How to generate Modulus and Exponent for sgining XML doc ?

I Want sign XML doc. I am doing following for generating signature(ruby). unsigned_xml = <<-xml Tove Jani Reminder Don't forget me this weekend! xml sdoc =…
Mike
  • 11
  • 1
1
vote
0 answers

How can I use an XML detached signature when the file may be stored anywhere?

How can I use an XML detached digital signature in Java when the URI where the file is being signed will not be the same as when the file is being validated? Specifically, the file to be signed is created and signed on one server, then shipped to…
Jonathan Rosenne
  • 2,159
  • 17
  • 27
1
vote
1 answer

Problems sign XML with java 8u121 in windows

I have signed a XML document with java 8 without problems, until I upgrade to the Java 8u121 version, the code is: String xml_entrada = "D:\\CeslySoft\\Ivap_facturador\\CPE\\FirmaXML\\Schema-20480510144-RC-20170327-0001.xml"; String…
Carlos G.
  • 11
  • 1
1
vote
0 answers

Code failing to validate SAML Response on digest

Update I have figured out why the reference validation is failing. Unfortunately, I can't figure out what to do about it. When parsing the "sigString" String variable into the "doc" Document variable, the LINEFEED characters are being converted into…
Jason Lyle
  • 141
  • 4
1
vote
1 answer

PowerShell Validate SAML Signed XML

We recently had an issue where an IdP was not trusting SAML 2.0 logout request signatures from our RP/SP. We were seeking alternative ways to validate the SAML request signature because both the IdP and samltool.com complained about the signature…
Douglas Plumley
  • 565
  • 5
  • 21
1
vote
2 answers

Xades multiple signatures

Hi everyone and thanks in advance for the help. My goal is to let two or more different persons to deal with a document incrementally: The first will create the xml, compile only a subsection of the document (according to his role) and then sign…
Riugos
  • 23
  • 5
1
vote
1 answer

Trouble verifying XML signature with XmlDsigExcC14NTransform and InclusiveNamespaces

I have an XML document where I need to verify a signature. The SignedInfo element has the element CanonicalizationMethod which specifies the algorithm "http://www.w3.org/2001/10/xml-exc-c14n#" and also has a child element InclusiveNamespaces with a…
elSeten
  • 38
  • 1
  • 8
1
vote
1 answer

Signature xml tags in another position

I'm doing the signing of a document with c #   with this code public class program { static void Main(String[] arg) { string xmlString = File.ReadAllText(@"D:\E-Billing\Demo.xml"); XmlDocument doc = new…
FrankizzioCom
  • 11
  • 1
  • 6
1
vote
2 answers

Getting X509SerialNumber integer value from X509Certificate2

I am trying to get a X509.v3 certificate's (that I have as X509Certificate2 object) serial number to put it into X509SerialNumber element in XADES XMLDSIG, which is supposed to be an integer. I have an XML signature made by an other software using…
user4469411
1
vote
0 answers

SignedXml not working right when verifying a signature

This this Microsoft's example of using SignedXml class to verify a signature and it didn't work for me (in Visual Studio 2013 with .NET version 4.0) due to casting XmlNode to XmlElement in the code: Boolean VerifyDetachedSignature( String^…
user4469411
1
vote
1 answer

SignatureValue calculation for XML-DSIG

I am trying to write a method that returns a signature of an XML element for XMLDSIG using NET framework components (RSACryptoServiceProvider) in C++/CLI. Could please someone explain this excerpt from XMLDSIG specs (…
user4469411
1
vote
2 answers

Namespace handling for digital signatures with JAXB

Peoples, I have been through the posts here and the example code for handling digital signatures when using JAXB and am running into an issue with what I believe is the introduction of namespaces to the "SignedInfo" element by JAXB marshalling. I…
Hacksaw
  • 69
  • 1
  • 13