Reputation: 612
I have created a service account in the Google API Console, downloaded the .p12 file, and now I am trying to use https://github.com/hokaccha/node-jwt-simple to sign the request for a token.
Where/How should I get the 'secret' for signing it with HS256?
Upvotes: 2
Views: 571
Reputation: 612
It turned out to be a problem with the openssl command I was using. In case anybody runs into the same issue make sure to use "-nodes" parameter like so:
openssl pkcs12 -in file.p12 -out file.pem -nodes
Then just pass the content of the .pem file as the key for signing the token.
Good luck!
Upvotes: 1