DocumentationAEMAEM TutorialsAEM Forms Tutorials

Certifying Document in AEM Forms

Last update: March 25, 2025
  • Applies to:
  • Experience Manager 6.4
  • Experience Manager 6.5
  • Topics:
  • Document Security

CREATED FOR:

  • Intermediate
  • Developer

A Certified Document provides PDF document and forms recipients with added assurances of its authenticity and integrity.

To certify a document, you can use Acrobat DC on the desktop or AEM Forms Document Services as part of an automated process on a server.

This article provides you sample OSGI bundle to certify pdf documents using AEM Forms Document Services.The code used in the sample is available here

To certify documents using AEM Forms, the following steps need to be followed

Adding certificate to trust store

Please follow the steps mentioned below to add the certificate to keystore in AEM

  • Initialize global trust store
  • Search for fd-service user
  • You will have to scroll the results page to load all the users to find the fd-service user
  • Double click the fd-service user to open the user settings window
  • Click on “Add Private Key from the keystore file”.Specify the alias and password specific to your certificate
    add-certificate
  • Save your changes

Creating OSGI Service

You can write your own OSGi bundle and use the AEM Forms Client SDK to implement a service to certify PDF documents. The following links would be useful to write your own OSGi bundle

  • Creating your first OSGi bundle
  • Use Document Service API

Or you can use the sample bundle included as part of this tutorial assets.

NOTE
The sample bundle uses alias called “ares” to certify the documents. So please make sure your alias is called “ares” when using this bundle

Testing the sample on your local system

  • Download and install Custom Document Services Bundle
  • Download and install Developing with Service User Bundle
  • Make sure you have added the following entry in the Apache Sling Service User Mapper Service
    DevelopingWithServiceUser.core:getformsresourceresolver=fd-service as shown in the screenshot below
    User-Mapper
  • Import Sample Adaptive Form
  • Import and install the Custom Submit
  • Open the Adaptive Form
  • Upload PDF document that needs to be certified
    optional - Specify the signature field that you want to use in certifying the document
  • Click submit.
  • Certified PDF should be returned to you.
recommendation-more-help
8de24117-1378-413c-a581-01e660b7163e