Hi,
I have tried to follow the Docs guide: Retrieve a Bearer token from Google Cloud.
I have used this as Google SA Private Key:
“-----BEGIN PRIVATE KEY-----\n xxxxxxxx \n-----END PRIVATE KEY-----\n”
Is this correct?
I get this error:
Seems theres some issues with the function in action node update service variable:
Have you tried testing this locally in Node to see if the same issue reproduces? It might be that your PEM formatted private key is not well formatted.
See here: Error: error:1E08010C:DECODER routines::unsupported (ERR_OSSL_UNSUPPORTED) · Issue #4115 · nodejs/help · GitHub
Can you try base64’ing or using JS template literals to store the PEM key.
2 Likes
Thank you, that helped
We used this in the function:
const privateKey = -----BEGIN PRIVATE KEY-----\n${googleSAPrivateKey.replace(/\\n/gm, "\n")}\n-----END PRIVATE KEY-----\n
2 Likes