Skip to content

Cannot add GPG signing sub-key #14009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 2 tasks
etanot opened this issue Dec 16, 2020 · 2 comments
Closed
1 of 2 tasks

Cannot add GPG signing sub-key #14009

etanot opened this issue Dec 16, 2020 · 2 comments

Comments

@etanot
Copy link

etanot commented Dec 16, 2020

Type:

Bug report

Description

When I'm trying to add my GPG signing sub-key, Gitea shows me this error message:

This GPG key is not usable with any email address associated with your account.

Basically, I run gpg --armor --export <signing-sub-key-id>! (notice, I've added a ! at end of ID, to tell GPG to only export my master key and specific sub-key information, see this gnupg-users mailing list thread). I've no issue with adding my sub-key this way to Github and Gitlab.

Steps to Reproduce

  • Run gpg --armor --export <signing-sub-key-id>! command.
  • Copy the output of the command (public key).
  • Go Settings -> SSH/GPG keys -> Manage GPG keys.
  • Click on Add key button in Manage GPG keys section.
  • Paste the copied public key.
  • Now, click on green Add key button.

Expected Output

Key should be added successfully.

Actual Output

Getting this error message, This GPG key is not usable with any email address associated with your account.

@a1012112796
Copy link
Member

a1012112796 commented Dec 16, 2020

@finn0 hello, Now gitea only allow add public gpg keys bounded with the user's email.

@etanot
Copy link
Author

etanot commented Dec 17, 2020

Thanks @a1012112796, then closing this bug report and opening another issue for the feature request.

@etanot etanot closed this as completed Dec 17, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Jan 18, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants