April 20, 2020
Estimated Post Reading Time ~

Replicating Keys for AEM 6.2 and Older Versions

Solution:
Replicating Keys for AEM 6.2 and older version.

In AEM 6.2 and older versions, the keys are stored in the repository under the /etc/key node.

The recommended way to securely replicate the keys across your instances is to only replicate this node. You can selectively replicate nodes via CRXDE Lite:
Replicating Keys for AEM 6.3
Whereas in older versions the replication keys were stored in the repository, beginning with AEM 6.3 they are stored on the filesystem.

Therefore, in order to replicate your keys across instances, you need to copy them from the source instance to the target instances' location on the filesystem.

More specifically, you need to:
  • Access the AEM instance, typically an author instance, that contains the key material to copy.
  • Locate the com.adobe.granite.crypto.file bundle in the local file system. For example, under this path: /crx-quickstart/launchpad/felix/bundle21
  • The bundle.info file inside each folder will identify the bundle name.
  • Navigate to the data folder. For example: /crx-quickstart/launchpad/felix/bundle21/data
  • Copy the HMAC and master files.
  • Then, go to the target instance you want to duplicate the HMAC key to, and navigate to the data folder. For example: /crx-quickstart/launchpad/felix/bundle21/data Paste the two files you previously copied.
  • Refresh the Crypto Bundle if the target instance is already running.
  • Repeat the above steps for all instances you want to replicate the key to.
Note:
You can revert to the pre 6.3 methods of storing keys by adding the below parameter when you first install AEM:
-Dcom.adobe.granite.crypto.file.disable=true


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.