aboutsummaryrefslogtreecommitdiffstats
path: root/tests/account-encrypted-openssl
blob: a3ad707257d9ea5a8c8622a9a66636507a65b22f (plain)
1
2
3
4
5
6
7
8
9
10
11
# 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

export TERM="linux"
lacme account

# vim: set filetype=sh :