Skip to content

Conversation

rafiramadhana
Copy link
Contributor

Resolves #25

Tested in my local

Generating a sealed public/private ecdsa key pair.
Enter file in which to save the key (/root/.ssh/id_ecdsa): /root/.ssh/id_ecdsa_demo2.tpm
Enter pin (empty for no pin): 
Confirm pin: 
Your identification has been saved in /root/.ssh/id_ecdsa_demo2.tpm

@jtagcat
Copy link
Contributor

jtagcat commented Oct 14, 2023

The separate function and checking are not needed. Trim already checks for suffix.

image

Instead, just change line 265 to filename = strings.TrimSuffix(filenameInput, ".tpm")

Thanks for finding the spot where to make the change and testing!

@rafiramadhana
Copy link
Contributor Author

The separate function and checking are not needed. Trim already checks for suffix.

image

Instead, just change line 265 to filename = strings.TrimSuffix(filenameInput, ".tpm")

Thanks for finding the spot where to make the change and testing!

updated ea50a8a

@rafiramadhana rafiramadhana temporarily deployed to Build, sign, release binaries October 15, 2023 10:10 — with GitHub Actions Inactive
@rafiramadhana rafiramadhana temporarily deployed to Build, sign, release binaries October 15, 2023 10:10 — with GitHub Actions Inactive
@rafiramadhana rafiramadhana temporarily deployed to Build, sign, release binaries October 15, 2023 10:10 — with GitHub Actions Inactive
@Foxboron
Copy link
Owner

Please squash the two commits.

Fix .tpm suffix in ssh-tmp-keygen.
@rafiramadhana
Copy link
Contributor Author

Please squash the two commits.

Ok, done

@rafiramadhana rafiramadhana temporarily deployed to Build, sign, release binaries October 15, 2023 11:49 — with GitHub Actions Inactive
@rafiramadhana rafiramadhana temporarily deployed to Build, sign, release binaries October 15, 2023 11:49 — with GitHub Actions Inactive
@rafiramadhana rafiramadhana temporarily deployed to Build, sign, release binaries October 15, 2023 11:49 — with GitHub Actions Inactive
@Foxboron Foxboron merged commit d0f23c9 into Foxboron:master Oct 15, 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.

Don't add suffix if user added it already
3 participants