summaryrefslogtreecommitdiff
path: root/src/op_mode
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-10-07 17:27:21 +0200
committerGitHub <noreply@github.com>2024-10-07 17:27:21 +0200
commit1f9f34fb95396b7d07b742e155732cac25437992 (patch)
tree9800f96c1ebaceea400e55a147e256110d496669 /src/op_mode
parent3e7cc03b4608196a0989e6af6ad65748b69f0672 (diff)
parent195a1feec400e7159290479c23c0176774a9eccf (diff)
downloadvyos-1x-1f9f34fb95396b7d07b742e155732cac25437992.tar.gz
vyos-1x-1f9f34fb95396b7d07b742e155732cac25437992.zip
Merge pull request #4140 from vyos/mergify/bp/circinus/pr-4118
pki: T6481: auto import ACME certificate chain into CLI (backport #4118)
Diffstat (limited to 'src/op_mode')
-rwxr-xr-xsrc/op_mode/pki.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/src/op_mode/pki.py b/src/op_mode/pki.py
index 615a458c9..1b0f61c22 100755
--- a/src/op_mode/pki.py
+++ b/src/op_mode/pki.py
@@ -26,13 +26,22 @@ from cryptography.x509.oid import ExtendedKeyUsageOID
from vyos.config import Config
from vyos.config import config_dict_mangle_acme
-from vyos.pki import encode_certificate, encode_public_key, encode_private_key, encode_dh_parameters
+from vyos.pki import encode_certificate
+from vyos.pki import encode_public_key
+from vyos.pki import encode_private_key
+from vyos.pki import encode_dh_parameters
from vyos.pki import get_certificate_fingerprint
-from vyos.pki import create_certificate, create_certificate_request, create_certificate_revocation_list
+from vyos.pki import create_certificate
+from vyos.pki import create_certificate_request
+from vyos.pki import create_certificate_revocation_list
from vyos.pki import create_private_key
from vyos.pki import create_dh_parameters
-from vyos.pki import load_certificate, load_certificate_request, load_private_key
-from vyos.pki import load_crl, load_dh_parameters, load_public_key
+from vyos.pki import load_certificate
+from vyos.pki import load_certificate_request
+from vyos.pki import load_private_key
+from vyos.pki import load_crl
+from vyos.pki import load_dh_parameters
+from vyos.pki import load_public_key
from vyos.pki import verify_certificate
from vyos.utils.io import ask_input
from vyos.utils.io import ask_yes_no