Understanding PKCS#11 RSA Signing Mechanisms in Adobe Acrobat
Question details
The user needs to understand how Adobe Acrobat interacts with PKCS#11 RSA signing mechanisms and how to handle scenarios where custom modules receive CKM_RSA_PKCS instead of a raw hash-signing mechanism.

- Product
- Adobe Acrobat
- Device & OS
- not provided
- Scenario
- Integrating a custom PKCS#11 library/module with Adobe Acrobat for digital signing workflows.
- Observed behavior
- Acrobat natively uses CKM_RSA_PKCS instead of raw hash-signing mechanisms (such as CKM_RSA_X_509) and does not provide an option to force raw RSA handling, requiring the custom module to pad and sign the hash accordingly.
Verify that your custom PKCS#11 module is properly compiled, accessible by your PDF software, and that your development environment aligns with PKCS#1 v1.5 RSA specifications.
Configure the Custom PKCS#11 Module for PKCS#1 v1.5 RSA Signing
Modify your PKCS#11 module to properly expose and handle the CKM_RSA_PKCS mechanism expected by Adobe Acrobat.
Acrobat currently supports only PKCS#1 v1.5 RSA as the RSA signing mechanism for this workflow. It does not provide a setting to force the use of CKM_RSA_X_509 or another raw RSA mechanism.
Instead of sending a pre-padded hash to C_Sign, Acrobat sends the raw bytes to be hashed. Your custom PKCS#11 module is responsible for hashing these bytes, adding the appropriate PKCS#1 v1.5 padding, and then signing the result.
Open the source code or configuration settings of your custom PKCS#11 library in your development environment.
Ensure the module explicitly exposes support for the CKM_RSA_PKCS mechanism so Acrobat can recognize it during the initialization phase.
Configure the C_Sign function within your module to accept the raw bytes sent by Acrobat, generate the hash, and apply the PKCS#1 v1.5 padding internally before signing.
Recompile the PKCS#11 library and integrate the updated module with Adobe Acrobat. Run a test digital signing workflow to confirm compatibility.
Try WPS Office for Secure PDF Management
Developing and troubleshooting custom PKCS#11 modules for Acrobat can be highly complex. If you need a hassle-free way to manage, edit, and digitally sign PDF documents without deep configuration, WPS Office offers a free, lightweight, and user-friendly alternative.
- 1. Download WPS Office: Visit the official WPS website to download and install WPS Office for free.
- 2. Open PDF Document: Launch WPS PDF and open the document you wish to review or sign.
- 3. Apply Digital Signature: Navigate to the 'Protect' tab and select 'Sign Document' to easily create and apply standard digital signatures.

Frequently Asked Questions
Can I force Adobe Acrobat to use CKM_RSA_X_509 for PKCS#11 signing?
No, Adobe Acrobat does not provide a native setting to force the use of CKM_RSA_X_509 or other raw RSA mechanisms. It relies exclusively on PKCS#1 v1.5 RSA signing for these workflows.
Why won't Adobe Acrobat load my custom PKCS#11 library?
Acrobat may fail to load a custom PKCS#11 library if it does not correctly expose the expected CKM_RSA_PKCS mechanism, if there are architecture mismatches (such as loading a 32-bit library on a 64-bit requirement), or if the library is missing necessary system dependencies.
How does Acrobat handle hashing during the PKCS#11 signing process?
Acrobat does not send a pre-padded hash to the C_Sign function. Instead, it passes the raw bytes to be hashed. The PKCS#11 module itself must hash these bytes and add the correct PKCS#1 padding.
Does Adobe Acrobat support PSS or OAEP signing mechanisms?
Currently, standard legacy workflows in Acrobat rely on PKCS#1 v1.5. While PDF version 2.0 specifications introduce support for PSS and OAEP mechanisms, you must verify your specific Acrobat version's release notes for updated compliance.




