-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Double Transform elements works, but causing issues #230
Comments
I can also add that if I am using Canonicalization According to the specification I am trying to follow we should be using The edited code as this seems to be OK:
However, changing |
I have exactly same problem. Third party API gives me the same error. Any solutions yet? |
any response on this? |
We have a workaround where we're ignoring the second transform from being added inside the library. In the following file:
It would ignore the second transform from being added in the signed xml. |
Any solution? I have the same problem, just i need envelopedsignature |
Refer this. It works for us. |
Thanks @cyberrspiritt for your help!, my problem is another now. Failed digest value
OK digest value
|
@cyberrspiritt , if that solution worked for you, would you mind creating a PR with a test suite and making a PR so that the community can benefit and so that you don't have to maintain a fork? |
First off, thanks so much for this module, awesome!
Next, I am not too familiar with XML singing and have had a difficult time actually verifying that the signature is OK but it has been running fine for some time...
The problem being that we add two elements in order to produce a valid signature.
You can see the signed request here:
http://b-0389251a222dab85cf34ef28fa5672f0.iso6523-actorid-upis.acc.edelivery.tech.ec.europa.eu/iso6523-actorid-upis::0007:5567321707/services/busdox-docid-qns::urn:oasis:names:specification:ubl:schema:xsd:Invoice-2::Invoice##urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0::2.1
It is part of a standardized listing for Peppol SMP (Peppol.eu).
The XML is, as I said, valid and signed correctly but the specification states:
If I remove the additional it is not producing a valid XML signature anymore.
My code is as follows:
The above creates teh valid signing but according to the spex I need to remove
'http://www.w3.org/2001/10/xml-exc-c14n#'
but doing that the signature becomes invalid...I think this issue is related: #210
The text was updated successfully, but these errors were encountered: