Appliance backup script fails with error 'encryption failed: public key not found'
3 years ago
Originally Published: 2011-02-17
Article Number
000051840
Applies To
RSA Key Manager Appliance 2.7SP1
Issue
Appliance backup script fails with error "encryption failed: public key not found"
The following error shows up at the end of output when RKM Appliance backup script RKMABackup.sh is run:

gpg: RKMABackup: skipped: public key not found
gpg: /opt/rkm-appliance-backup/work/RKMA-Backup-20110209211734/RKMA-Backup-su-rkm01.rsa.com-20110209211734.tar.gz: encryption failed: public key not found
GPG keys for encryption and SSH keys for transferring backup file to an external archive server were created as per procedure
Cause
The gpg key created for backups (using command "gpg --gen-key") was named something other than "RKMABackup", whereas the backup script RKMABackup.sh specifically looks for a key named "RKMABackup" for encrypting backup files.
Resolution
Create a new gpg key (using command "gpg --gen-key") and name it "RKMABackup".  The backup script RKMABackup.sh should now successfully encrypt the backup file.