summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2022-05-30 20:52:22 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2022-05-30 23:58:32 +0200
commitd9434e4b6e64e00eddb735a265f3fd86610d7004 (patch)
tree8f48c936520a54672631163a84f42eae2f778456 /python
parent5642a1e01fff03a1b3a28a654ce363aab51b2b33 (diff)
downloadvyos-1x-d9434e4b6e64e00eddb735a265f3fd86610d7004.tar.gz
vyos-1x-d9434e4b6e64e00eddb735a265f3fd86610d7004.zip
pki: T3642: Add ability to import files into PKi configuration
Diffstat (limited to 'python')
-rw-r--r--python/vyos/pki.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/pki.py b/python/vyos/pki.py
index 0b916eaae..fd91fc9bf 100644
--- a/python/vyos/pki.py
+++ b/python/vyos/pki.py
@@ -247,7 +247,7 @@ def load_private_key(raw_data, passphrase=None, wrap_tags=True):
if wrap_tags:
raw_data = wrap_private_key(raw_data, passphrase)
- if passphrase:
+ if passphrase is not None:
passphrase = bytes(passphrase, 'utf-8')
try: