Skip to content
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

Implement import of existing keys #16

Merged
merged 5 commits into from
Aug 8, 2023
Merged

Implement import of existing keys #16

merged 5 commits into from
Aug 8, 2023

Conversation

Foxboron
Copy link
Owner

@Foxboron Foxboron commented Aug 5, 2023

λ ssh-tpm-agent master Ɇ » ssh-keygen -t ecdsa
Generating public/private ecdsa key pair.
Enter file in which to save the key (/home/fox/.ssh/id_ecdsa): ./test-key
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in ./test-key
Your public key has been saved in ./test-key.pub
The key fingerprint is:
SHA256:ZAR5B+p10hjevO9gD1X6bwOnmlPIRwLYJbvklDzop44 fox@framework
The key's randomart image is:
+---[ECDSA 256]---+
|      .o*o..     |
|      .=+O=      |
|      .oBO*   .  |
|     ..++ooo +   |
|      ..S+o *    |
|        o  = = . |
|       .  + + =  |
|      o  . *.. o.|
|     E .   o=  .o|
+----[SHA256]-----+

λ ssh-tpm-agent master Ɇ » ./ssh-tpm-keygen --import ./test-key
Sealing an existing public/private ecdsa key pair.
Enter existing password (empty for no pin):
./test-key.tpm already exists.
Overwrite (y/n)?y
Enter pin (empty for no pin):
Confirm pin:
Your identification has been saved in ./test-key.tpm
The key fingerprint is:
SHA256:ZAR5B+p10hjevO9gD1X6bwOnmlPIRwLYJbvklDzop44
The key's randomart image is the color of television, tuned to a dead channel.

Depends on google/go-tpm#341

@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 5, 2023 13:01 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 5, 2023 13:01 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 5, 2023 13:01 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 7, 2023 19:11 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 7, 2023 19:12 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 7, 2023 19:12 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 7, 2023 19:12 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 7, 2023 19:12 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 7, 2023 19:12 — with GitHub Actions Inactive
Signed-off-by: Morten Linderud <[email protected]>
Signed-off-by: Morten Linderud <[email protected]>
Signed-off-by: Morten Linderud <[email protected]>
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 7, 2023 20:28 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 7, 2023 20:28 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 7, 2023 20:28 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 7, 2023 20:28 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 7, 2023 20:28 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 7, 2023 20:28 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 8, 2023 20:31 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 8, 2023 20:31 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 8, 2023 20:31 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 8, 2023 20:31 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 8, 2023 20:31 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 8, 2023 20:31 — with GitHub Actions Inactive
Signed-off-by: Morten Linderud <[email protected]>
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 8, 2023 20:40 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 8, 2023 20:40 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 8, 2023 20:40 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 8, 2023 20:40 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 8, 2023 20:40 — with GitHub Actions Inactive
@Foxboron Foxboron temporarily deployed to Build, sign, release binaries August 8, 2023 20:40 — with GitHub Actions Inactive
@Foxboron Foxboron merged commit cfac705 into master Aug 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant