Skip to content

Commit

Permalink
Merge pull request #32 from kairoaraujo/documentation_fix
Browse files Browse the repository at this point in the history
General documentation fixes
  • Loading branch information
kairoaraujo authored Oct 25, 2020
2 parents f3ccfbd + 1b5eab3 commit e9b1bab
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ownca/ownca.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit e9b1bab

Please sign in to comment.