Skip to content

Use CAdES with Signer.async_sign_raw #339

Discussion options

You must be logged in to vote

Hi @ruimelodev,

You're in luck: with that calling convention you can just pass use_pades=True (EDIT: sorry, subfilter=PADES is the current syntax) in PdfSignatureMetadata and pyHanko will do the rest. No need to change your custom signer, but you might need some more config if you also want timestamps to be included (depends on the specific PAdES level you need).

The CAdES signed attributes thing is for adding optional attributes that are defined in CAdES but not in "core" CMS. They're not needed for baseline compliance, regardless of the level.

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@ruimelodev
Comment options

@MatthiasValvekens
Comment options

@ruimelodev
Comment options

@MatthiasValvekens
Comment options

Answer selected by ruimelodev
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