summaryrefslogtreecommitdiffstats
path: root/base/common/python/pki/nssdb.py
diff options
context:
space:
mode:
Diffstat (limited to 'base/common/python/pki/nssdb.py')
-rw-r--r--base/common/python/pki/nssdb.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/base/common/python/pki/nssdb.py b/base/common/python/pki/nssdb.py
index 503bd412b..30b1d4793 100644
--- a/base/common/python/pki/nssdb.py
+++ b/base/common/python/pki/nssdb.py
@@ -545,6 +545,9 @@ class NSSDatabase(object):
pkcs12_password_file=None,
nicknames=None,
append=False,
+ include_trust_flags=True,
+ include_key=True,
+ include_chain=True,
debug=False):
tmpdir = tempfile.mkdtemp()
@@ -580,6 +583,15 @@ class NSSDatabase(object):
if append:
cmd.extend(['--append'])
+ if not include_trust_flags:
+ cmd.extend(['--no-trust-flags'])
+
+ if not include_key:
+ cmd.extend(['--no-key'])
+
+ if not include_chain:
+ cmd.extend(['--no-chain'])
+
if debug:
cmd.extend(['--debug'])