summaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorRob Crittenden <rcritten@redhat.com>2011-07-11 17:39:30 -0400
committerRob Crittenden <rcritten@redhat.com>2011-07-17 22:14:24 -0400
commit2f650b60a4ce9c9b19a64b21ebe3051668efb4af (patch)
treed6280d7277eae4ab726a4c1a201130f9ea4f3a4d /install
parent038089a0c9160221d17796b8d6fd6e4f1fb67850 (diff)
downloadfreeipa-2f650b60a4ce9c9b19a64b21ebe3051668efb4af.tar.gz
freeipa-2f650b60a4ce9c9b19a64b21ebe3051668efb4af.tar.xz
freeipa-2f650b60a4ce9c9b19a64b21ebe3051668efb4af.zip
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
Diffstat (limited to 'install')
-rwxr-xr-xinstall/tools/ipa-server-install2
1 files changed, 1 insertions, 1 deletions
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)