new-relic-setup/setup_scripts/encrypt_private_key.sh

6 lines
143 B
Bash

#! /bin/bash
# assuming gpg is installed
password="$1"
filename="$2"
gpg --symmetric --cipher-algo AES256 --passphrase "$password" "$filename"