From bc12215b2fec371b543ed671cb4ae02c3f77aa5b Mon Sep 17 00:00:00 2001 From: Dan Prince Date: Mon, 30 Jul 2012 23:22:21 -0400 Subject: [PATCH] Set example key_size to 1024. Updates the default key_size and config file example to 1024. Using the previous value of 2048 would cause database truncation and/or column size errors because the 'id' column isn't big enough to hold that much data. Works around LP Bug #1031191. Change-Id: Ic28bf0945a65fb80a4b610a4de7afa485d09e2bb --- etc/keystone.conf.sample | 2 +- keystone/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/keystone.conf.sample b/etc/keystone.conf.sample index e98c22d125..b189de0556 100644 --- a/etc/keystone.conf.sample +++ b/etc/keystone.conf.sample @@ -95,7 +95,7 @@ #certfile = /etc/keystone/ssl/certs/signing_cert.pem #keyfile = /etc/keystone/ssl/private/signing_key.pem #ca_certs = /etc/keystone/ssl/certs/ca.pem -#key_size = 2048 +#key_size = 1024 #valid_days = 3650 #ca_password = None diff --git a/keystone/config.py b/keystone/config.py index 8954d36ba0..93481065e0 100644 --- a/keystone/config.py +++ b/keystone/config.py @@ -133,7 +133,7 @@ register_str('keyfile', group='signing', default="/etc/keystone/ssl/private/signing_key.pem") register_str('ca_certs', group='signing', default="/etc/keystone/ssl/certs/ca.pem") -register_int('key_size', group='signing', default=2048) +register_int('key_size', group='signing', default=1024) register_int('valid_days', group='signing', default=3650) register_str('ca_password', group='signing', default=None)