I've export my gpg key from the machine they were created to another server.
In the new server I've tried to use the imported key to decrypt some files I've received, but I got the following error:
gpg: encrypted with 1024-bit RSA key, ID 0A83CFB1, created 2014-09-09 "App Eng <firstname.lastname@example.org>" gpg: public key decryption failed: Bad passphrase gpg: decryption failed: No secret key
I'm sure that the passphrase I've used is correct. I then tried to edit my key and change the passphrase doing:
gpg --list-keys /home/dx/.gnupg/pubring.gpg ------------------------------- pub 2048R/DB437C11 2016-04-29 [expires: 2018-04-29] uid [ unknown] App Eng (ibm keys) <email@example.com> sub 2048R/0AC6B02C 2016-04-29 [expires: 2018-04-29] pub 1024R/AADE6532 2014-09-09 uid [ unknown] App Eng <firstname.lastname@example.org> sub 1024R/0A83CFB1 2014-09-09 gpg --edit-key AADE6532 gpg (GnuPG) 2.0.28; Copyright (C) 2015 Free Software Foundation, Inc. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Secret key is available. pub 1024R/AADE6532 created: 2014-09-09 expires: never usage: SC trust: unknown validity: unknown sub 1024R/0A83CFB1 created: 2014-09-09 expires: never usage: E [ unknown] (1). App Eng <email@example.com> gpg> passwd Key is protected. You need a passphrase to unlock the secret key for user: "App Eng <firstname.lastname@example.org>" 1024-bit RSA key, ID AADE6532, created 2014-09-09 gpg: cancelled by user Can't edit this key: Operation cancelled
This makes me think that there has been some issue with importing the keys. Can anyone understand why I can't decrypt my files with the key installed? Thanks!