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

How to accept multiple public keys? #67

Open
vifino opened this issue Nov 21, 2019 · 2 comments
Open

How to accept multiple public keys? #67

vifino opened this issue Nov 21, 2019 · 2 comments

Comments

@vifino
Copy link

vifino commented Nov 21, 2019

Hey.
I've been wondering how to properly accept multiple public keys instead of just a single one.
Does simply not providing a remote_public_key(&pubkey) and checking HandshakeState.get_remote_static() work?
Using a psk works, but it's not ideal.

@fogti
Copy link
Contributor

fogti commented Mar 29, 2020

It could be really useful to check against a list of allowed public keys instead of just allowing a single one. I think simply not providing a remote_public_key and checking HandshakeState.get_remote_static() should work.

@mcginty
Copy link
Owner

mcginty commented Apr 5, 2020

@vifino sorry for not getting back to you. @zserik is correct - using the X pattern (static key for sender is transmitted) will allow you to receive a static key and then verify it in whatever way you'd like.

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

3 participants