kjur / jsrsasign

The 'jsrsasign' (RSA-Sign JavaScript Library) is an opensource free cryptography library supporting RSA/RSAPSS/ECDSA/DSA signing/validation, ASN.1, PKCS#1/5/8 private/public key, X.509 certificate, CRL, OCSP, CMS SignedData, TimeStamp, CAdES and JSON Web Signature/Token in pure JavaScript.
https://kjur.github.io/jsrsasign
Other
3.25k stars 646 forks source link

Generate pdf hash and send it to external signing service then it return certificate + signed hash #566

Closed bakusangel closed 1 year ago

bakusangel commented 1 year ago

Is it possible to generate pdf hash and embed the signed hash to the original pdf?

Flow -

  1. jsrsasign functions to generate the pdf hash that with empty signature container
  2. Send the hash to external signing service
  3. External signing service receive hash and sign it with their primary key then return certificate (public key) and signed hash
  4. jsrsasign functions to embed the signed hash
kjur commented 1 year ago

Jsrsasign doesn't have any PDF parsing or generation function however, it has:

and they may help your remote PDF signing. Thanks.