install-key-manager.sh install fails with error: "gpg: key generation failed: Unknown elliptic curve"
Hello developers,
Running Arch Linux here...
Testing out the new Storage Daemon Encryption feature in 15.0.1, I have run into the error in the subject of this issue.
$ sudo ./install-key-manager.sh install
gpg: keybox '/opt/comm-bacula/etc/gnupg/pubring.kbx' created
gpg: key generation failed: Unknown elliptic curve
gpg: done
Error with gpg
$ echo $?
1
Following a gpg thread I found online, the solution for me was to change the 'default' entries in the install-key-manager.sh
script starting on line 103:
${bacula_prefix}/scripts/install-key-manager.sh Original:
103 cat > $GNUPG_SCRIPT <<EOF
104 Key-Type: default <--- This one
105 Subkey-Type: default <--- And this one
106 Name-Real: Bacula
107 Name-Email: bacula@localhost
108 Expire-Date: 0
109 Passphrase: $PASSPHRASE
110 %commit
111 %echo done
112 EOF
${bacula_prefix}/scripts/install-key-manager.sh Modified:
103 cat > $GNUPG_SCRIPT <<EOF
104 Key-Type: RSA <----- Changed from default to RSA
105 Subkey-Type: RSA <----- Changed from default to RSA
106 Key-length: 2048 <----- Line added. Not 100% sure if necessary, but works
107 Subkey-Length: 2048 <----- Line added. Not 100% sure if necessary, but works
108 Name-Real: Bacula
109 Name-Email: bacula@localhost
110 Expire-Date: 0
111 Passphrase: $PASSPHRASE
112 %commit
113 %echo done
114 EOF