Skip to content

Struggling to use the "assert" example: FIDO_ERR_NO_CREDENTIALS #863

Answered by LDVG
JonasVautherin asked this question in Q&A
Discussion options

You must be logged in to vote

Having limited experience with libgit2, I unfortunately don't know what that callback expects.

If you really want to try to get an assertion with our tooling instead of our library functions first, and really want to experiment with OpenSSH keys directly, here's an example of crudely extracting information out of the SSH private key file:

$ ssh-keygen -q -t ecdsa-sk -C '' -O application=ssh://foo -f /tmp/key
Enter passphrase for "/tmp/key" (empty for no passphrase):
Enter same passphrase again:

Let's have a look at the raw contents:

$ grep -v SSH /tmp/key | base64 -d | xxd
00000000: 6f70 656e 7373 682d 6b65 792d 7631 0000  openssh-key-v1..
00000010: 0000 046e 6f6e 6500 0000 046e 6f6e 650…

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@JonasVautherin
Comment options

@LDVG
Comment options

LDVG Mar 31, 2025
Maintainer

Answer selected by JonasVautherin
@JonasVautherin
Comment options

@LDVG
Comment options

LDVG Mar 31, 2025
Maintainer

@JonasVautherin
Comment options

@LDVG
Comment options

LDVG Apr 2, 2025
Maintainer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants