From 1b5eab39f975f371f0bed5b5561e1d866c2e81d5 Mon Sep 17 00:00:00 2001 From: Kairo Araujo Date: Thu, 22 Oct 2020 16:30:56 +0200 Subject: [PATCH] General documentation fixes --- ownca/ownca.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ownca/ownca.py b/ownca/ownca.py index b62bced..47c6fc5 100644 --- a/ownca/ownca.py +++ b/ownca/ownca.py @@ -886,6 +886,8 @@ def issue_certificate( key_size=2048, ): """ + Issues a new certificate signed by the CA + :param hostname: Hostname :type hostname: str, required :param maximum_days: Certificate maximum days duration @@ -1004,6 +1006,8 @@ def issue_certificate( def load_certificate(self, hostname): """ + Loads an existent certificate. + :param hostname: Hostname (common name) :type hostname: str, required :return: host object @@ -1019,6 +1023,9 @@ def load_certificate(self, hostname): def revoke_certificate(self, hostname, common_name=None): """ + Revokes an existent certificate owned by CA. It also updates the CA + Certificate Revoked List. + :param hostname: Hostname :type hostname: str, required :param common_name: Common Name (CN) when loading existent certificate @@ -1103,6 +1110,8 @@ def revoke_certificate(self, hostname, common_name=None): def sign_csr(self, csr, csr_public_key, maximum_days=825): """ + Signs an Certificate Sigining Request and generates the certificates. + :param hostname: Hostname :type hostname: str, required :param csr: Certificate Signing Request Object