Serialize SSH and RSA private keys to store them in a Chef Data Bag

To send RSA private keys to instances, store them in encrypted data bags. The data bag item is a JSON file that contains keys and values. To place the multi-line RSA key into the value part of the JSON file, we need to replace the new line characters with “\n” On Macintosh we will use […]