summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2021-07-03 21:34:41 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2021-07-03 21:34:41 +0200
commite19317716477942eaabbea86e37748b06c6ee036 (patch)
tree6da8ee38c1a3c2141acc47f454fd2f6f4a12304f
parent50f71042d7a00692ade8caaa32db1102157ad87a (diff)
downloadvyos-1x-e19317716477942eaabbea86e37748b06c6ee036.tar.gz
vyos-1x-e19317716477942eaabbea86e37748b06c6ee036.zip
pki: T3642: Fix for correct method on encoding certificate request
-rwxr-xr-xsrc/op_mode/pki.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/op_mode/pki.py b/src/op_mode/pki.py
index b2576fbb9..d84aa2618 100755
--- a/src/op_mode/pki.py
+++ b/src/op_mode/pki.py
@@ -273,7 +273,7 @@ def generate_certificate_request(private_key=None, key_type=None, return_request
return None
print("Certificate request:")
- print(encode_public_key(cert_req) + "\n")
+ print(encode_certificate(cert_req) + "\n")
install_certificate(name, private_key=private_key, key_type=key_type, key_passphrase=passphrase, is_ca=False)
def generate_certificate(cert_req, ca_cert, ca_private_key, is_ca=False):