summaryrefslogtreecommitdiffstats
path: root/ipaserver
diff options
context:
space:
mode:
Diffstat (limited to 'ipaserver')
-rw-r--r--ipaserver/install/certs.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/ipaserver/install/certs.py b/ipaserver/install/certs.py
index f958e366e..6569f5144 100644
--- a/ipaserver/install/certs.py
+++ b/ipaserver/install/certs.py
@@ -137,10 +137,9 @@ class NSSDatabase(object):
# FIXME, this relies on NSS never changing the formatting of certutil
certlist = []
for cert in certs:
- nickname = cert[0:61]
- trust = cert[61:]
- if re.match(r'\w*,\w*,\w*', trust):
- certlist.append((nickname.strip(), trust.strip()))
+ match = re.match(r'^(.+?)\s+(\w*,\w*,\w*)\s*$', cert)
+ if match:
+ certlist.append(match.groups())
return tuple(certlist)