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

Cannot handle PDF with valid signature (sha256withrsaencryption) #122

Open
air-share opened this issue Oct 28, 2022 · 0 comments
Open

Cannot handle PDF with valid signature (sha256withrsaencryption) #122

air-share opened this issue Oct 28, 2022 · 0 comments

Comments

@air-share
Copy link

air-share commented Oct 28, 2022

const verifyPDF = require("@ninja-labs/verify-pdf");
const { verified, authenticity, integrity, expired, signatures } =  verifyPDF(buffer);
{
  verified: false,
  authenticity: undefined,
  integrity: undefined,
  expired: undefined,
  signatures: undefined
} 

The PDF, when opened with LibreOffice or Adobe Acrobat, is shown to have "valid signature".
After digging in, the PDF was signed using algorithm: "sha256withrsaencryption". I'm unable to find much info about it. Is it something the lib could handle in the future?

@air-share air-share changed the title PDF with valid signature getting "verified: false" Cannot handle PDF with valid signature (sha256withrsaencryption) Oct 29, 2022
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

1 participant