Skip to content

Instantly share code, notes, and snippets.

View Bitcents's full-sized avatar
🏠
Working from home

Bit Cents Bitcents

🏠
Working from home
View GitHub Profile
@Bitcents
Bitcents / README.md
Created February 23, 2023 13:08
Setting private keys in Heroku Dyno

Background

This is for those who have had trouble setting up private keys following the PEM format on Heroku Dyno. These keys have the following structure:

-----BEGIN {SOME KEY TYPE}-----
{string representation of key}
-----END {SOME KEY TYPE}-----

When you get this kind of key from some service, such as a key file from a GCP/AWS service account, you would usually get it as a string literal, like the following: