-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
openpgp: invalid data: user ID signature with wrong type #6
Comments
Could you add the output of |
|
The
|
Yes. When I extracted the output above, I was online and when I'm online my private key is not accessible. Here is the result of the same command while my private key is available:
|
I'm not sure, but mine does not have the |
Just to be clear: I tried pgp2ssh with my private key available (I had to type the passphrase to get gpg to export the private keys). |
pgp2ssh tries to extracts your authentication key [A], but this does not work, because it is on the smartcard/some-usb-token as indicated by the ">". In your export is only a reference to the smartcard. If you want it to do some shh login try using the gpg-agent. It can replace the ssh-agent and works without hassle with your smartcard. See 'man gpg-agent'. |
Correct. That's what I liked above
That will work for login, but not to get a ssh key as file, which is what they are trying to do. Either way, If you have a backup you can try to re-import it correctly to a new, empty |
I started a discussion on gnupg-users mailing list and got some answers: https://lists.gnupg.org/pipermail/gnupg-users/2024-March/067023.html. |
Thanks for sharing! Sadly it confirmes what I thought and without any proper backup of the key you won't be able to extract a private SSH key to my knoledge. The last reply of that thread is by Werner, I assume it is the same person that worked on the export functionality mentioned in the README.md https://dev.gnupg.org/T6647 Since this is not really something I can help, I think we can close the issue. Feel free to reopen or comment if there are any new developments, maybe you do manage to find a backup of that key somewhere |
I have the same issue. Here's a brief overview of my process:
Here are some additional details:
I've verified the backup file contains the subkeys using |
@liby Looks like you have the same problem as discussed at https://lists.gnupg.org/pipermail/gnupg-users/2024-March/067023.html. In any case, as long as you see the |
@liby I was just like you, thinking that my private subkeys weren't imported but they were. My subkeys were expired and invisible: using |
I remembered that my subkeys did expire in January and February of this year, and I renewed them for 29 years. In this case, will I be unable to retrieve them? But I remember that after extending the validity period, I re-ran
|
my keys were also expired and this is no problem. You can still import them back into your keyring and export them for pgp2ssh. |
Thank you, but when I run the |
Try passing |
Thank you very much. After running the |
Whatever I try I always get:
This is with the latest version of golang installed on a fresh debian system in a VM.
I generated the
./damien.asc
file with:F72C652AE7564ECC
is my main key id (not a subkey).The
./damien.asc
file is 81 lines long (compared to the 26 lines of thetest-key.asc
in the repository). Is the size normal? The file looks like:The text was updated successfully, but these errors were encountered: