sshkey 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/sshkey.rb +1 -1
- data/lib/sshkey/version.rb +1 -1
- metadata +1 -1
data/lib/sshkey.rb
CHANGED
@@ -10,7 +10,7 @@ class SSHKey
|
|
10
10
|
|
11
11
|
def self.generate(options = {})
|
12
12
|
type = options[:type] || "rsa"
|
13
|
-
case type
|
13
|
+
case type.downcase
|
14
14
|
when "rsa" then SSHKey.new(OpenSSL::PKey::RSA.generate(2048).to_pem, options)
|
15
15
|
when "dsa" then SSHKey.new(OpenSSL::PKey::DSA.generate(2048).to_pem, options)
|
16
16
|
else
|
data/lib/sshkey/version.rb
CHANGED