diff options
author | Matt Whiteley <mwhiteley@fastly.com> | 2016-10-28 10:19:27 -0700 |
---|---|---|
committer | Matt Whiteley <mwhiteley@fastly.com> | 2017-09-06 09:15:58 -0700 |
commit | 283d9877cb82722c9cb5d59d6c6975925d5370f7 (patch) | |
tree | fb6135c59686eaff44b3905139d3ddc13008910d /lib | |
parent | 3aa343e072238abc4319901c225d293a44aeb56c (diff) | |
download | mixlib-authentication-283d9877cb82722c9cb5d59d6c6975925d5370f7.tar.gz |
Use SHA2
Signed-off-by: Matt Whiteley <mwhiteley@fastly.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/mixlib/authentication/signedheaderauth.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mixlib/authentication/signedheaderauth.rb b/lib/mixlib/authentication/signedheaderauth.rb index b6be746..4a19092 100644 --- a/lib/mixlib/authentication/signedheaderauth.rb +++ b/lib/mixlib/authentication/signedheaderauth.rb @@ -264,7 +264,7 @@ module Mixlib raise AuthenticationError, "Could not connect to ssh-agent. Make sure the SSH_AUTH_SOCK environment variable is set properly! (#{e.class.name}: #{e.message})" end begin - ssh2_signature = agent.sign(keypair.public_key, string_to_sign) + ssh2_signature = agent.sign(keypair.public_key, string_to_sign, Net::SSH::Authentication::Agent::SSH_AGENT_RSA_SHA2_256) rescue => e raise AuthenticationError, "Ssh-agent could not sign your request. Make sure your key is loaded with ssh-add! (#{e.class.name}: #{e.message})" end |