Skip to content

How to technically distinguish a digital signature and and a digital seal with pyhanko? #270

Answered by MatthiasValvekens
tuelle asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tuelle

From your description, I assume that by "digital seal", you mean the thing that shows up with a blue "Certified by..." ribbon in Acrobat, and not the notion that is referred to as "electronic seal" in eIDAS.

The standard term for those in PDF-land is "certification signature". Here are two ways to identify those:

  • The quickest way to figure out if a document contains such a signature is to check for the existence of root['/Perms']['/DocMDP']. This will be a reference to the signature dictionary of the certification signature. Note that the presence of this entry is strictly speaking not a requirement spelled out black-and-white in the standard, but it is "de facto" mandatory be…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by tuelle
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants