Skip to content

Commit

Permalink
Improve some doc strings.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ernesto Revilla committed Mar 24, 2014
1 parent 1055d8d commit ee4781c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions pyx509/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,15 @@

def print_certificate_info(derData):
"""
Print certificate
Print certificate to stdout
"""
X509Certificate.from_der(derData).display()


def print_certificate_info_cmd():
"""
Print certificate command
"""
if len(sys.argv) < 2:
print >> sys.stderr, "Usage: %s <certicate file>" % sys.argv[0]
sys.exit(1)
Expand All @@ -38,12 +41,15 @@ def print_certificate_info_cmd():

def print_signature_info(derData):
"""
Print certificates of signature
Print signature certificates to stdout
"""
PKCS7.from_der(derData).display()


def print_signature_info_cmd():
"""
Print signature certificates command
"""
if len(sys.argv) < 2:
print >> sys.stderr, "Usage: %s <pkcs 7 signature file>" % sys.argv[0]
sys.exit(1)
Expand Down

0 comments on commit ee4781c

Please sign in to comment.