0.0
No commit activity in last 3 years
No release in over 3 years
Ruby gem to prove client has the other half of a keypair
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

gem install 'sshkeyproof'

If you have a user's public key, you can verify they are who they say they are (ie. they hold the correspending private key):

Client

The client takes their private key (defaults to ~/.ssh/id_rsa) and encrypts a random string as proof of work.

request = Sshkeyproof::Client.new key_file: "./id_rsa"

Server

The server takes the request string and verifies it

s = Sshkeyproof::Server.new request

s.fingerprint # => public key SHA1 fingerprint

s.correct?(public_key)   # => true