Getting "Bad parameter" error while trying to sign a PDF with Internal Root CA
- June 25, 2026
- 3 replies
- 48 views
I am trying to sign a PDF content with a digital signature certificate created through ADCS Internal Root CA. When I open the signed PDF document to Microsoft Edge it is showing “Signature Valid” but when I open the signed PDF in Adobe Acrobat Reader (latest version) it gives -
“Error during signature verification
Adobe Acrobat error.
Bad parameter.”
I am using BouncyCastle for CMS signature generation. I have tested my signing code with just PFX loading and CMS signature generation steps on a small text and I have found the CMS verification is successful. But whenever I use the same code to sign the PDF it gives “Bad parameter” and also the openssl cms verification test fails.
Based on these observations I feel there is something regarding the PDF structure after embedding the signing part into the original PDF which causes the “Bad parameter” issue.
I am hereby providing some structural information of the signed PDF as attachment.
Any help will be highly appreciated.
