diff options
-rw-r--r-- | base/common/python/pki/cli/pkcs12.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/base/common/python/pki/cli/pkcs12.py b/base/common/python/pki/cli/pkcs12.py index a57dfd9ba..aa04582f7 100644 --- a/base/common/python/pki/cli/pkcs12.py +++ b/base/common/python/pki/cli/pkcs12.py @@ -148,11 +148,9 @@ class PKCS12ImportCLI(pki.cli.CLI): # determine cert types with open(output_file, 'r') as f: + cert_info = {} - cert_info = None - - for line in f.readlines(): - + for line in f: match = re.match(r' Nickname: (.*)$', line) if match: # store previous cert |