Skip to content

Commit

Permalink
Fixed cert nickname in NSSDatabase.export_cert_from_db()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
edewata committed Aug 12, 2020
1 parent 0c6b6e9 commit 2df13c4
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions base/common/python/pki/nssdb.py
Expand Up @@ -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'])

Expand All @@ -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)
Expand Down

0 comments on commit 2df13c4

Please sign in to comment.