$ gpg --edit-key [keyID]And thats it. Your secret key now uses the new passphrase.
Enter the new passphrase for this secret key.
Saturday, September 5, 2009
Change GPG passphrase
When you create a new public/private key pair you are prompted to enter a passphrase. This passphrase is then used to unlock the private key. Now suppose that you chose a secure passphrase but maybe after a few years with the same key something happens and someone learns your passphrase. Instead of having to create a whole new key pair, you can change the passphrase relatively easily. Here is how you do it: