Reputation: 522
When I try to add a GPG key that uses my GitHub provided commit email address, it gives me an error that the email address is "Unverified." How should I fix this?
I followed the guide on GitHub for generating a GPG key and adding it to your account, which says:
Note: When asked to enter your email address, ensure that you enter the verified email address for your GitHub account. To keep your email address private, use your GitHub-provided no-reply email address. For more information, see "Verifying your email address" and "Setting your commit email address."
See this screenshot that shows the error:
Upvotes: 9
Views: 4332
Reputation: 1427
My account was created in 2011 and even though my private e-mail address was shown in the new ID+user@@users.noreply.github.com
format on the Emails settings page, further down under "Keep my email addresses private" it was shown in the old [email protected]
format.
Credit to this answer for suggesting to uncheck and check "Keep my email addresses private" again, which updated my private e-mail address to the new format and no longer appearing as unverified under GPG keys.
Upvotes: 2
Reputation: 522
Unlike when setting your commit email address, it is necessary to use the full noreply email address that GitHub provides. You can find it under the "Keep my email addresses private" section on the GitHub email settings page. This email address should look something like:
Use this email address to generate your GPG key instead of simply using "[email protected]."
Upvotes: 8