diff options
Diffstat (limited to 'base/common/python')
-rw-r--r-- | base/common/python/pki/cli/pkcs12.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/base/common/python/pki/cli/pkcs12.py b/base/common/python/pki/cli/pkcs12.py index eaca3c6f8..ae3349f13 100644 --- a/base/common/python/pki/cli/pkcs12.py +++ b/base/common/python/pki/cli/pkcs12.py @@ -219,7 +219,11 @@ class PKCS12ImportCLI(pki.cli.CLI): cert_id = cert_info['id'] nickname = cert_info['nickname'] - trust_flags = cert_info['trust_flags'] + + if 'trust_flags' in cert_info: + trust_flags = cert_info['trust_flags'] + else: + trust_flags = 'CT,C,C' if main_cli.verbose: print('Exporting %s (%s) from PKCS #12 file' % (nickname, cert_id)) |