summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-03 21:38:23 +0200
committerGitHub <noreply@github.com>2021-07-03 21:38:23 +0200
commit034b58596cd514d10a0d4eb134cfa7282eeca8b1 (patch)
tree79fe32862cacb0cc92b6be25661d009e2e9b503d
parent405954522b8ec2299ff8b79e6124d07d6d92082e (diff)
parente19317716477942eaabbea86e37748b06c6ee036 (diff)
downloadvyos-1x-034b58596cd514d10a0d4eb134cfa7282eeca8b1.tar.gz
vyos-1x-034b58596cd514d10a0d4eb134cfa7282eeca8b1.zip
Merge pull request #906 from sarthurdev/pki_typo
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):