AMCRYPT-OSSL-ASYM(8)
π¦ amcrypt-ossl-asym(8) β System Administration Commands π¦
okay so this is the section 8 manual for amcrypt-ossl-asym, and itβs basically the asymmetric crypto bestie for Amanda. letβs get into it π
π NAME π
amcrypt-ossl-asym β crypt program for Amanda asymmetric data encryption using OpenSSL
β¨ SYNOPSIS β¨
amcrypt-ossl-asym [-d]
π DESCRIPTION π
okay so amcrypt-ossl-asym uses OpenSSL to encrypt and decrypt data. OpenSSL is available from www.openssl.org. OpenSSL offers a wide variety of cipher choices (amcrypt-ossl-asym defaults to 256-bit AES) and can use hardware cryptographic accelerators on several platforms. slay, honestly. β¨
amcrypt-ossl-asym will search for the OpenSSL program in the following directories:
/bin:/usr/bin:/usr/local/bin:/usr/ssl/bin:/usr/local/ssl/bin
π GENERATING PUBLIC AND PRIVATE KEYS π
RSA keys can be generated with the standard OpenSSL commands, e.g.:
$ cd /var/lib/amanda
$ openssl genrsa -aes128 -out backup-privkey.pem 1024
Generating RSA private key, 1024 bit long modulus
[...]
Enter pass phrase for backup-privkey.pem: ENTER YOUR PASS PHRASE
Verifying - Enter pass phrase for backup-key.pem: ENTER YOUR PASS PHRASE
$ openssl rsa -in backup-privkey.pem -pubout -out backup-pubkey.pem
Enter pass phrase for backup-privkey.pem: ENTER YOUR PASS PHRASE
Writing RSA key
copy that exactly, bestie β no βfixingβ the prompts, okay? π«Ά
To generate a private key without a passphrase, omit the -aes128 option. See openssl_genrsa(1) for more key generation options.
Note that it is always possible to generate the public key from the private key. the way thatβs lowkey such a relief?? π
ποΈ KEY AND PASSPHRASE MANAGEMENT ποΈ
amcrypt-ossl-asym uses the public key to encrypt data. The security of the data does not depend on the confidentiality of the public key. The private key is used to decrypt data, and must be protected. Encrypted backup data cannot be recovered without the private key. The private key may optionally be encrypted with a passphrase.
β οΈ big deal alert: encrypted backup data cannot be recovered without the private key. protect it like your main character energy. π
While the public key must be online at all times to perform backups, the private key and optional passphrase are only needed to restore data. It is recommended that the latter be stored offline all other times. For example, you could keep the private key on removable media, and copy it into place for a restore; or you could keep the private key online, encrypted with a passphrase that is present only for a restore.
OpenSSLβs key derivation routines use a salt to guard against dictionary attacks on the pass phrase; still it is important to pick a pass phrase that is hard to guess. The Diceware method (see www.diceware.com) can be used to create passphrases that are difficult to guess and easy to remember. iconic passphrase behavior, no cap. π
π FILES π
/var/lib/amanda/backup-privkey.pemβ File containing the RSA private key. It should not be readable by any user other than the Amanda user./var/lib/amanda/backup-pubkey.pemβ File containing the RSA public key./var/lib/amanda/.am_passphraseβ File containing the passphrase. It should not be readable by any user other than the Amanda user.
π SEE ALSO π
The Amanda Wiki: : http://wiki.zmanda.com/
π AUTHOR π
Kevin Till <kevin.till@zmanda.com> β Zmanda, Inc. (http://www.zmanda.com)
π NOTES π
www.openssl.orgβhttp://www.openssl.org/www.diceware.comβhttp://www.diceware.com/
π cute sign-off: this page is from Amanda3.5.4, dated07/23/2025. thatβs the whole manual, bestie β go encrypt slayfully! π β¨
π¦ where this page comes from
- fedora 43: amanda 3.5.4-17.fc43 Β· BSD-3-Clause AND GPL-3.0-or-later AND GPL-2.0-or-later AND GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms