ninja-labs-tech / verify-pdf

Verify pdf signatures in JS
49 stars 39 forks source link

Cannot handle PDF with valid signature (sha256withrsaencryption) #122

Open air-share opened 1 year ago

air-share commented 1 year ago
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?