From 2f650b60a4ce9c9b19a64b21ebe3051668efb4af Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Mon, 11 Jul 2011 17:39:30 -0400 Subject: Use information from the certificate subject when setting the NSS nickname. There were a few places in the code where certs were loaded from a PKCS#7 file or a chain in a PEM file. The certificates got very generic nicknames. We can instead pull the subject from the certificate and use that as the nickname. https://fedorahosted.org/freeipa/ticket/1141 --- install/tools/ipa-server-install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'install') diff --git a/install/tools/ipa-server-install b/install/tools/ipa-server-install index ca0d139b6..316fc67f7 100755 --- a/install/tools/ipa-server-install +++ b/install/tools/ipa-server-install @@ -94,7 +94,7 @@ def subject_callback(option, opt_str, value, parser): raise ValueError('invalid attribute: %s' % dn[x][0].attr.lower()) except ValueError, e: raise ValueError('Invalid subject base format: %s' % str(e)) - parser.values.subject = value + parser.values.subject = str(dn) # may as well normalize it def parse_options(): # Guaranteed to give a random 200k range below the 2G mark (uint32_t limit) -- cgit