summaryrefslogtreecommitdiff
path: root/src/op_mode/pki.py
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2023-08-14 11:00:52 -0500
committerJohn Estabrook <jestabro@vyos.io>2023-08-14 11:00:52 -0500
commitf67614c66d6570c06be199ffffe439a589a06d4b (patch)
tree7e839426f5d91d2797d21d5cdd0df520c1c7e899 /src/op_mode/pki.py
parent50c0bc7b2582618fe340b0ca2da1087933e0c6be (diff)
downloadvyos-1x-f67614c66d6570c06be199ffffe439a589a06d4b.tar.gz
vyos-1x-f67614c66d6570c06be199ffffe439a589a06d4b.zip
pki: T5477: use Config instead of ConfigTreeQuery for defaults
Diffstat (limited to 'src/op_mode/pki.py')
-rwxr-xr-xsrc/op_mode/pki.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/op_mode/pki.py b/src/op_mode/pki.py
index aff4ad1ae..35c7ce0e2 100755
--- a/src/op_mode/pki.py
+++ b/src/op_mode/pki.py
@@ -25,7 +25,6 @@ from cryptography import x509
from cryptography.x509.oid import ExtendedKeyUsageOID
from vyos.config import Config
-from vyos.configquery import ConfigTreeQuery
from vyos.pki import encode_certificate, encode_public_key, encode_private_key, encode_dh_parameters
from vyos.pki import get_certificate_fingerprint
from vyos.pki import create_certificate, create_certificate_request, create_certificate_revocation_list
@@ -43,7 +42,7 @@ CERT_REQ_END = '-----END CERTIFICATE REQUEST-----'
auth_dir = '/config/auth'
# Helper Functions
-conf = ConfigTreeQuery()
+conf = Config()
def get_default_values():
# Fetch default x509 values
base = ['pki', 'x509', 'default']