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

Signature is not PAdES compliant and "The signature is not intact!" #183

Closed
ElTimuro opened this issue Jan 26, 2023 · 6 comments
Closed

Comments

@ElTimuro
Copy link
Contributor

ElTimuro commented Jan 26, 2023

Hi Valery,

first of all great project. I hope I can contribute soon, since I am currently building an open-source signing service called Documenso.com. While checking out your library I found this issue:

Describe the bug and the expected behaviour

Is it a bug in signing or in the helpers?
I used plainAddPlaceholder, not sure if the helper is the problem.

To Reproduce
Simple sign any PDF and Validate using the EU tool.
(just upload "signed file"): https://ec.europa.eu/digital-building-blocks/DSS/webapp-demo/validation

  • I used
const pdfBufferToSign = plainAddPlaceholder({
    pdfBuffer,
    subFilter: SUBFILTER_ETSI_CADES_DETACHED,
  });

to sign.

Give us a failing test.

Cheers from Hamburg
Timur

@vbuch
Copy link
Owner

vbuch commented Jan 27, 2023

#149 #71
I think people complained about the same before. I could trace it up to #70 (comment)
Nobody ever suggested a PR hence it is not fixed in the library. Try it out and everyone would love it if you can come up with a PR.

@ElTimuro
Copy link
Contributor Author

I will do my best, but I'm currently new in the matter so it will thank some time to get into it. I was hoping you had more insight as to why, since the implementation is working well otherwise as far as I can tell and you seem to know PAdES. I'm considering completely writing a node/ TS library port of the https://github.com/esig/dss library, tho probably only PAdES for now.

I will let you know if I find something. Meanwhile, if you have any idea where to start that would be helpful.

@ElTimuro
Copy link
Contributor Author

PR: #187

@ElTimuro
Copy link
Contributor Author

Fixed and merged 🎉

@vbuch
Copy link
Owner

vbuch commented Mar 2, 2023

Released in 1.5.1

@hmpvillegas
Copy link

good day to you all, was wondering PAdES mode for signing is multiple signature supported ? thanks

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

3 participants