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

@saulx/crypto sign() fails with ssh-keygen generated keys #1

Open
nfrade opened this issue Sep 26, 2023 · 3 comments
Open

@saulx/crypto sign() fails with ssh-keygen generated keys #1

nfrade opened this issue Sep 26, 2023 · 3 comments
Assignees

Comments

@nfrade
Copy link
Contributor

nfrade commented Sep 26, 2023

No description provided.

@nfrade nfrade self-assigned this Sep 26, 2023
@nfrade
Copy link
Contributor Author

nfrade commented Sep 26, 2023

When using a private key generated with ssh-keygen -t rsa -b 4096, the sign() command fails.
Probably a key size problem.
Should at least check if the key is compatible and throw otherwise.

@anishnath
Copy link

Generated SSH keygen for RSA using https://8gwifi.org/sshfunctions.jsp size 2048 works but size 4096 doesn't work

@nfrade
Copy link
Contributor Author

nfrade commented Feb 15, 2024

Yes that is the case. 2048 is faster for our purposes.
You can easily generate keys with this function also in the library:
https://github.com/atelier-saulx/crypto/blob/main/src/index.ts#L12

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

No branches or pull requests

2 participants