Increase keysize for OpenID
This commit is contained in:
parent
dfc649e772
commit
6e685194e9
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ module Api
|
|||
if File.exist?(key_file_path)
|
||||
private_key = OpenSSL::PKey::RSA.new(File.read(key_file_path))
|
||||
else
|
||||
private_key = OpenSSL::PKey::RSA.new(2048)
|
||||
private_key = OpenSSL::PKey::RSA.new(4096)
|
||||
File.write key_file_path, private_key.to_pem
|
||||
File.chmod(0600, key_file_path)
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue