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)