Create Chef Data Bag Secret File with OpenSSL

From Bonus Bits
Jump to: navigation, search

Purpose

This article gives the steps to create an encrypted data bag secret file for knife, chef server, Kitchen etc.


Prerequisites

  • Openssl installed


Steps

openssl rand -base64 512 | tr -d '\r\n' > encrypted_data_bag_secret


Sources