How To Send private.key While Creating Credentials
Hello,
To create `ExecutionContext`, we need to pass the credentials. While creating credentials, I need to read all the values from AWS secrets and paramstore. Now I am confused how I have to read the and pass the private.key value and pass it while creating credentials. Because when I tried keeping the private ley value in secrets and read it, its not able to parse it. And we are not allowed to store the private.key file in our code base as per the security reason.
Can you please help me understand how you guys will read and send the value for this private.key ?
Credentials adobeClientCredentials =
Credentials.serviceAccountCredentialsBuilder()
.withClientId(adobeClientId)
.withClientSecret(adobeClientSecret)
.withPrivateKey(adobePrivateKeyfileContents)
.withOrganizationId(adobeOrgId)
.withAccountId(adobeAccountId)
.build();I am having issue creating Credentials due to that. Need help to resolve this issue asap as we have the license on this but we are not able to use it.
Thanks,
Deba
