News for hackers. Stuff that matters.
Re:Digitally sign PDF files from your commandline – open-pdf... by hannob on Monday December 19, 2022 @10:09AM (#34052934)
It should be said that PDF signatures are a very fragile design, leading to a pletora of security issues: https://pdf-insecurity.org/

A core problem is that a pdf signature does not necessarily cover a complete file, but can be a partial signature. This adds a whole lot of complexity and unclarity around what is actually signed, allowing all kinds of attacks. I feel this is all so problematic that if you want to sign PDFs it's probably better to not use PDF signatures, but some form of outside signatures over the whole file.

Re:Digitally sign PDF files from your commandline – open-pdf... by Avamander on Monday December 19, 2022 @01:03PM (#34055301)
It is in theory possible to craft better-signed PDFs that would pass the European eIDAS Qualified Electronic Signature requirements.

But in general the ASiC-E container format is more versatile and also more robust against potential flaws.

Re:Digitally sign PDF files from your commandline – open-pdf... by kjetil on Monday December 19, 2022 @04:01PM (#34057651)
In practice, though, PAdES has a lot more support and has the crucial property of being easy to view by end-users.

Is there any wide use of ASiC?

Re:Digitally sign PDF files from your commandline – open-pdf... by Avamander on Monday December 19, 2022 @05:33PM (#34058730)
> In practice, though, PAdES has a lot more support and has the crucial property of being easy to view by end-users.

For now, I'd expect ever increasing compliance with eIDAS in the future. PDF's are also not the only thing that people want to sign, that's where an agnostic container format has it's benefits.

> Is there any wide use of ASiC?

I know that at least Estonia, Latvia, Lithuania and Finland have deployed it. Of those Estonia probably has the widest and longest use of it, as they migrated *to* ASiC-E, having used the predecessors BDOC and CDOC previously.

Re:Digitally sign PDF files from your commandline – open-pdf... by layer8 on Monday December 19, 2022 @06:03PM (#34059091)
The problem is mostly (1) signature validation implementations that don’t perform all necessary checks, and (2) PDF viewers with signature validation that don’t properly guide the user to view the actually signed document revision (when it is not the most recent one).

Regarding (1), this is because there exists no complete specification of what an implementation needs to check with regard to the PDF format. Implementors have to figure it out on their own, and thus there have been some gaps.