-
Notifications
You must be signed in to change notification settings - Fork 17
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
error in libcrypto
if loaded key is replaced
#56
Labels
bug
Something isn't working
Comments
dcousens
changed the title
Jul 12, 2024
error in libcrypto
if key is replacederror in libcrypto
if loaded key is replaced
Yep, this sounds like a bug :) Thanks! |
I suspect this fixes you issue, but I haven't tested yet. |
Doesn't appear to be resolved # ssh-tpm-keygen -f test
# and added test.pub to authorized keys
$ git rev-parse HEAD
54a466a8eec3b48b374e05908dfa11b112392c30
$ ./bin/ssh-tpm-agent -d
time=2024-07-14T10:16:44.485+10:00 level=INFO msg="Warning: ssh-tpm-agent is meant to run as a background daemon."
time=2024-07-14T10:16:44.485+10:00 level=INFO msg="Running multiple instances is likely to lead to conflicts."
time=2024-07-14T10:16:44.485+10:00 level=INFO msg="Consider using a systemd service."
time=2024-07-14T10:16:44.486+10:00 level=INFO msg="Listening on socket" path=/run/user/1000/ssh-tpm-agent.sock
time=2024-07-14T10:16:44.486+10:00 level=DEBUG msg="called loadkeys"
time=2024-07-14T10:16:44.486+10:00 level=DEBUG msg="skipping key: does not have .tpm suffix" name=/home/daniel/.ssh/config
# ...
time=2024-07-14T10:16:44.486+10:00 level=DEBUG msg="added TPM key" name=/home/daniel/.ssh/test.tpm
# ...
# ssh OK
time=2024-07-14T10:16:54.783+10:00 level=DEBUG msg="called extensions"
time=2024-07-14T10:16:54.784+10:00 level=DEBUG msg="called list"
time=2024-07-14T10:16:55.091+10:00 level=DEBUG msg="called signwithflags"
# ssh-tpm-keygen -f test
# and added test.pub to authorized keys
# ssh ERROR
# Load key "/home/daniel/.ssh/test.pub": error in libcrypto
time=2024-07-14T10:17:37.177+10:00 level=DEBUG msg="called extensions"
time=2024-07-14T10:17:37.177+10:00 level=DEBUG msg="called list" Ps. thank you for fixing f8a5360 💛 |
Can't reproduce with the details you have given so far. |
Interesting! I'll try and automate a reproduction when I can |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When testing, I used
ssh-tpm-keygen
to replace an existingtest.tpm
that had already been loaded by my runningssh-tpm-agent
:Then, without restarting
ssh-tpm-agent
and withssh-tpm-keygen
having replacedtest.tpm
, by then runningssh ...
the following error is shown:The followup output for this interaction from
ssh-tpm-agent -d
is relatively minimal, with no indicative error:Restarting
ssh-tpm-agent
resolves the problem.The text was updated successfully, but these errors were encountered: