Skip to content
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

Example to sign excel file #114

Open
samuraitruong opened this issue Jun 22, 2021 · 4 comments
Open

Example to sign excel file #114

samuraitruong opened this issue Jun 22, 2021 · 4 comments

Comments

@samuraitruong
Copy link

Is there any example for XaDes-T signature for the excel file?

@rmhrisk
Copy link
Contributor

rmhrisk commented Jun 22, 2021

No but a PR for one would be appreciated.

This library would handle most of the lifting, would also need zip library.

it’s relatively straightforward format.

@samuraitruong
Copy link
Author

@rmhrisk are we going to unzip the file, sign all the XML then zip it again?

I will give it a try , hopefully, I can have PR for it

@rmhrisk
Copy link
Contributor

rmhrisk commented Jun 22, 2021

Yes, the format, as I recall is a zip file with XML manifests referencing XML other XML files. The manifest itself is signed not the other files.

This project shows how to work with the format https://github.com/unidoc/unioffice, the signing will be straightforward with that scaffolding in place.

@samuraitruong
Copy link
Author

@rmhrisk gave it the first try last night, I can generate all the manifest but the signature does not show up :) will try more. I think all the refs and XML need to be updated properly according to open XML format specs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants