Error In PDF Conversion Due To PrivateKey
Hello,
We are building a Lambda function which will be triggered by s3 event when a file is uploaded to a folder. Looks like PDF conversion is breaking because of the Credentials. Basically its erroring out while trying parse the private.key.
The same code is working fine in the ECS service, no issues with the Credentials though.
Error:
12:21:48.331 [main] ERROR com.adobe.platform.operation.internal.util.PrivateKeyParser - Unable to parse provided private key: {}
org.bouncycastle.openssl.PEMException: unable to convert key pair: null
This is how I am build the credentials.
Credentials adobeClientCredentials =
Credentials.serviceAccountCredentialsBuilder()
.withClientId("615bebc4cdb94ce38e929222f2690242")
.withClientSecret("ec923417-ceff-4480-bb53-9387910f4274")
.withPrivateKey("private.key")
.withOrganizationId("D5086F726050E0510A495E8E@AdobeOrg")
.withAccountId("E14570F26050F5520A495FF1@techacct.adobe.com")
.build();
But we dont have a private.key , we are just specifying the name.
Need help to understand the issue.
Thanks,
Deba
