diff options
author | Christian Poessinger <christian@poessinger.com> | 2022-05-31 06:40:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-31 06:40:18 +0200 |
commit | e771eab37de6841b4c3b9d98e8f974dacde34075 (patch) | |
tree | 3070cb82df5de7a565db284f6a1c0a16392c6cc3 /python | |
parent | 5642a1e01fff03a1b3a28a654ce363aab51b2b33 (diff) | |
parent | 43cd3468868712434625826379e0e6b95b34f474 (diff) | |
download | vyos-1x-e771eab37de6841b4c3b9d98e8f974dacde34075.tar.gz vyos-1x-e771eab37de6841b4c3b9d98e8f974dacde34075.zip |
Merge pull request #1343 from sarthurdev/pki_import
pki: T3642: Add ability to import files into PKi configuration
Diffstat (limited to 'python')
-rw-r--r-- | python/vyos/pki.py | 2 |
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: |