# OpenSSL-encrypted account key (WARN: this test is not interactive)

PASSPHRASE="test"

openssl rsa -in /etc/lacme/account.key -out /etc/lacme/account.enc.key -aes128 -passout pass:"$PASSPHRASE"
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 :