From 6e685194e95447419b485d3c61697810ec32b2c6 Mon Sep 17 00:00:00 2001 From: Steffen van Bergerem Date: Sun, 14 Feb 2016 23:35:48 +0100 Subject: [PATCH] Increase keysize for OpenID --- lib/api/openid_connect/id_token_config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/openid_connect/id_token_config.rb b/lib/api/openid_connect/id_token_config.rb index 7592e105f..f76fa0961 100644 --- a/lib/api/openid_connect/id_token_config.rb +++ b/lib/api/openid_connect/id_token_config.rb @@ -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