- Copy the private key to clipboard
- Run command
pbpaste | base64 | pbcopy
on mac orxclip -selection clipboard -o | base64 -w 0 | xclip -selection clipboard
on 'nix systems - The private key is now base64 encoded in the clipboard. Paste it to env variable e.g. to heroku or to .env file
const private_key = new Buffer(process.env.PRIVATE_KEY, 'base64').toString('ascii');