-
Notifications
You must be signed in to change notification settings - Fork 66
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
Support XAdES #54
Comments
Hi, I'm sure it will be possible, but unfortunately I won't be able to implement it due to time constrictions. |
This is my propose |
If i'm not wrong |
It supports a few transforms. Enveloped signature is one of them. |
XAdES transform : |
So you need the canonicalization and the XPath transform. They are already present... |
Transform => OK |
Do you have a gist with reproducable steps? |
Should it not be ID instead of Id on the manifests? https://github.com/benoist/xmldsig/blob/master/lib/xmldsig/reference.rb#L37 |
It's really hard to help if you don't have an example in code :) Perhaps you can add a fixture with to the specs and try to write a spec for it in a pull request.. Just like here with the transform that you need https://github.com/benoist/xmldsig/blob/master/spec/fixtures/signed_xml-exc-c14n%23with_comments.xml |
Hey @ningzhang422 , I'm not sure if you've figured it out already but you can indicate the name of the the Id attribute so matches your case. By default this gem supports "ID" but in your screenshots it appears as "Id", so you should be able to define it using the unsigned_document = Xmldsig::SignedDocument.new(unsigned_xml, id_attr: 'Id')
signed_xml = unsigned_document.sign(private_key) |
Is it possible to extend this gems to support XAdES Signature ?
The text was updated successfully, but these errors were encountered: