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

Implements client support for OpenSSH Certificates #278

Merged
merged 4 commits into from
May 4, 2024

Conversation

shoaibmerchant
Copy link
Contributor

@shoaibmerchant shoaibmerchant commented May 3, 2024

Adds support for using OpenSSH Certificates based on OpenSSH Specs using the existing PublicKey authentication.

Approach:
Adds a new authenticate_openssh_cert() method, similar to authenticate_publickey() for passing certificate and the private key for authentication and signature generation. Internally a new AuthMethod::OpenSSHCertificate is added to handle certificate specific authentication flow.

Changes include -

  • Updated example examples/client_exec_interactive.rs with an optional argument to pass the openssh certificate path.
  • Dependencies ssh-key and ssh-encoding are added from RustCrypto/SSH for parsing, encoding.

The server-side support for this might be tricky, I am yet to explore.

@Eugeny Eugeny merged commit b20504d into warp-tech:main May 4, 2024
3 of 4 checks passed
@Eugeny
Copy link
Member

Eugeny commented May 4, 2024

Thank you - much appreciated!

@Eugeny
Copy link
Member

Eugeny commented May 4, 2024

@all-contributors please add @shoaibmerchant for code

Copy link
Contributor

@Eugeny

I've put up a pull request to add @shoaibmerchant! 🎉

Eugeny pushed a commit that referenced this pull request May 4, 2024
Adds @shoaibmerchant as a contributor for code.

This was requested by Eugeny [in this
comment](#278 (comment))

[skip ci]

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
@shoaibmerchant
Copy link
Contributor Author

Thank you - much appreciated!

You're welcome. Thanks for this rust implementation for SSH, it is helping us build ssh into our cli. I am keen to try out warp-tech too!

Also on a side note, I just saw that I missed some formatting, I will send a PR in a while.

@Eugeny
Copy link
Member

Eugeny commented May 4, 2024

No worries, I've already fixed it myself

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.

None yet

2 participants