Skip to content
Extraits de code Groupes Projets
Valider 230c075a rédigé par Dennis Schubert's avatar Dennis Schubert
Parcourir les fichiers

Merge pull request #6699 from svbergerem/increase-openid-keysize

Increase keysize for OpenID
parents 41ccccb8 6e685194
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -5,7 +5,7 @@ module Api ...@@ -5,7 +5,7 @@ module Api
if File.exist?(key_file_path) if File.exist?(key_file_path)
private_key = OpenSSL::PKey::RSA.new(File.read(key_file_path)) private_key = OpenSSL::PKey::RSA.new(File.read(key_file_path))
else 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.write key_file_path, private_key.to_pem
File.chmod(0600, key_file_path) File.chmod(0600, key_file_path)
end end
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter