git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Unable to use security key to commit signing using SSH keypair
@ 2022-06-28  0:09 Marcos Alano
  2022-06-28 16:23 ` Fabian Stelzer
  0 siblings, 1 reply; 3+ messages in thread
From: Marcos Alano @ 2022-06-28  0:09 UTC (permalink / raw)
  To: git

Hello fellows!

I'm able to sign commits using SSH keypair, but the keypair must be 
located in a file. If I try to use a SSH keypair in a security key (like 
an YubiKey) I get an error. I used this commands to do the test:
```
ssh-keygen -t ed25519-sk -f ~/.ssh/id_ed25519_sk
git config --global gpg.format ssh
git config --global user.signingkey "$(cat ~/.ssh/id_ed25519_sk.pub)"
git commit -S --allow-empty --message="Testing"
```

Bnd I get this error:
```
error: Couldn't load public key sk-ssh-ed25519@openssh.com <my key id>: 
No such file or directory?

fatal: failed to write commit object
```
I did the same thing with a plain ed25519 keypair and worked.

Am I doing anything wrong or security keys aren't supported yet?

Thank you for any help,
-- 
Marcos Alano

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-06-28 16:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-28  0:09 Unable to use security key to commit signing using SSH keypair Marcos Alano
2022-06-28 16:23 ` Fabian Stelzer
2022-06-28 16:43   ` Marcos Alano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).