What is the best practice for storing a private key? | Community
Skip to main content
Level 3
Sep 11, 2021 12:02 AM UTC
Solved

What is the best practice for storing a private key?

I'm working on an AEM 6.5.9 servlet that needs to use a PKCS8 format private key to sign a JWT for a third-party application. This is not related to setting up SSL or other Adobe services. Can the private key file be stored in the crx-quickstart folder or is there a different preferred approach? And how do folks store private keys inside AEM as a Cloud Service?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
rocksAccepted solution
Level 2
Sep 11, 2021 12:09 AM UTC

I would prefer to store this key under your java project as a resource file, package it as bundle and load it as when needed. Storing it on crx-quickstart exposes the private key and it is not secure.

2 replies

joerghoh
Employee
Sep 12, 2021 8:26 AM UTC
rocksAccepted solution
Level 2
Sep 11, 2021 12:09 AM UTC

I would prefer to store this key under your java project as a resource file, package it as bundle and load it as when needed. Storing it on crx-quickstart exposes the private key and it is not secure.

Translate