Hi, the attached patch fixes <https://fedorahosted.org/freeipa/ticket/4453>.
Honza -- Jan Cholasta
>From 672f0003190ffbbce9987b033959c63b4ea3b629 Mon Sep 17 00:00:00 2001 From: Jan Cholasta <jchol...@redhat.com> Date: Mon, 4 Aug 2014 11:13:25 +0200 Subject: [PATCH] Fix parsing of long nicknames in certutil -L output. https://fedorahosted.org/freeipa/ticket/4453 --- ipaserver/install/certs.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ipaserver/install/certs.py b/ipaserver/install/certs.py index f958e36..6569f51 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) -- 1.9.3
_______________________________________________ Freeipa-devel mailing list Freeipa-devel@redhat.com https://www.redhat.com/mailman/listinfo/freeipa-devel