From e19317716477942eaabbea86e37748b06c6ee036 Mon Sep 17 00:00:00 2001 From: sarthurdev <965089+sarthurdev@users.noreply.github.com> Date: Sat, 3 Jul 2021 21:34:41 +0200 Subject: pki: T3642: Fix for correct method on encoding certificate request --- src/op_mode/pki.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- cgit v1.2.3