Skip to content

Commit

Permalink
size for rsa key should be cast to integer
Browse files Browse the repository at this point in the history
  • Loading branch information
geemus committed Dec 10, 2024
1 parent d8820e1 commit 5c491e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/fog/aws/requests/kms/create_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def create_key(*args)
spec = spec.split("_#{size}").first
case spec
when 'RSA'
self.data[:pkeys][key_id] = OpenSSL::PKey::RSA.generate(size)
self.data[:pkeys][key_id] = OpenSSL::PKey::RSA.generate(size.to_i)
end

response.body = { 'KeyMetadata' => key }
Expand Down

0 comments on commit 5c491e5

Please sign in to comment.