I used GnuPG to create an RSA key pair xxx@xxx.com. When I created it, I set an empty passphrase.
$ gpg --gen-key
When generating the key pair, it prompts: "You need a passphrase to...", where I pressed enter twice, and it can success list public key and secret key:
$ gpg --gpg --list-keys
Now I want to sign yyy@yyy.com with xxx@xxx.com's private key.
I have tried to only press enter, but it did not work and raises an error instead:
Invalid passphrase: please try again
Please enter the passphrase to unlock the secret key.
How to bypass the error?