summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2016-04-06 19:22:48 +0200
committerEndi S. Dewata <edewata@redhat.com>2016-04-06 19:22:48 +0200
commit3d045118027b9f1a2c4b9e6416258e1a7a133376 (patch)
tree70d37195b9f754b23aaa6c746a5e39c901de4262
parentfcca8f0e209db78c8d7162cf3842425f8741623f (diff)
downloadpki-3d045118027b9f1a2c4b9e6416258e1a7a133376.tar.gz
pki-3d045118027b9f1a2c4b9e6416258e1a7a133376.tar.xz
pki-3d045118027b9f1a2c4b9e6416258e1a7a133376.zip
Added default trust flags when importing CA certificates.
-rw-r--r--base/common/python/pki/cli/pkcs12.py6
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))