From 2df13c4195e8e6b184294888b2c6376043047e33 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Tue, 11 Aug 2020 19:39:39 -0500 Subject: [PATCH] Fixed cert nickname in NSSDatabase.export_cert_from_db() The NSSDatabase.export_cert_from_db() has been modified to no longer prepend the token name to the cert nickname since the cert nickname obtained from serverCertNick.conf already contains the token name. --- base/common/python/pki/nssdb.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/base/common/python/pki/nssdb.py b/base/common/python/pki/nssdb.py index ff2af4a40ac..c7ce893364e 100644 --- a/base/common/python/pki/nssdb.py +++ b/base/common/python/pki/nssdb.py @@ -1366,9 +1366,6 @@ def export_cert_from_db(self, if self.token: cmd.extend(['--token', self.token]) - full_name = self.token + ':' + nickname - else: - full_name = nickname cmd.extend(['nss-cert-export']) @@ -1378,7 +1375,7 @@ def export_cert_from_db(self, if output_format: cmd.extend(['--format', output_format]) - cmd.extend([full_name, output_file]) + cmd.extend([nickname, output_file]) logger.debug('Command: %s', ' '.join(map(str, cmd))) subprocess.check_call(cmd)