Merge pull request #6699 from svbergerem/increase-openid-keysize
Increase keysize for OpenID
This commit is contained in:
commit
230c075aee
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