<Verifying signature from .ps7 file (PKCS#7/CMS) i...
# stackoverflow
u
Verifying signature from .ps7 file (PKCS#7/CMS) in Kotlin I have a file fileA.json.p7s and I'm trying to validate the detached signature using Bouncy Castle. However, the code fails on verification and returns the error: org.bouncycastle.cms.CMSSignerDigestMismatchException: message-digest attribute value does not match calculated value Does anyone know how to fix this error? Here is my code: fun verifySignature(): Boolean { val signatureContent = File("src/test/resources/fileA.json.p7s").readBytes() val cmsSignedData...