aboutsummaryrefslogtreecommitdiffstats
path: root/tests/account-encrypted-openssl
blob: 1f97fd0a4f3a4c47e928848942a241ac6e4c2c99 (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 -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 :