Verify digital signature using certificate chain in java
问题 i try to sign pdf using digital signature, i send hash value of pdf to REST API it does sign pdf using user's private key and returns CMS formatted data. I got certificate chain from CMS. Now i need to verify original pdf using the certificate chain and add signature to pdf. I use BC and Itextpdf public static String verifyPdf(byte[] toVerify, byte[] signedByte, String origFile, String signedFile) throws Exception { // CMSSignedData cms = new CMSSignedData(signedByte); // Store store = cms