aboutsummaryrefslogtreecommitdiffstats
path: root/tests/account-encrypted-openssl
blob: e79a528bc93b3d3a17aab394c36e788eaf21e4b1 (plain)
1
2
3
4
5
6
7
8
9
10
# OpenSSL-encrypted account key (WARN: this test is not interactive)

PASSPHRASE="test"

openssl rsa -aes128 -passout pass:"$PASSPHRASE" </etc/lacme/account.key >/etc/lacme/account.enc.key
sed -ri '0,\|^#?privkey\s*=.*| {s||privkey = file:/etc/lacme/account.enc.key|}' /etc/lacme/lacme-accountd.conf

lacme account

# vim: set filetype=sh :