summaryrefslogtreecommitdiffstats
path: root/sign_csr.py
diff options
context:
space:
mode:
Diffstat (limited to 'sign_csr.py')
-rw-r--r--sign_csr.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/sign_csr.py b/sign_csr.py
index 662a9fb..643fbb0 100644
--- a/sign_csr.py
+++ b/sign_csr.py
@@ -6,7 +6,10 @@ def sign_csr(pubkey, csr, email=None):
"""Use the ACME protocol to get an ssl certificate signed by a
certificate authority.
+ :param string pubkey: Path to the user account public key.
:param string csr: Path to the certificate signing request.
+ :param string email: An optional user account contact email
+ (defaults to webmaster@<shortest_domain>)
:returns: Signed Certificate (PEM format)
:rtype: string
@@ -357,7 +360,7 @@ sudo python -c "import BaseHTTPServer; \\
sys.stderr.write("Passed {} challenge!\n".format(i['domain']))
break
else:
- raise KeyError("'{}' challenge did not pass: {}".format(i['domain'],challenge_status))
+ raise KeyError("'{}' challenge did not pass: {}".format(i['domain'], challenge_status))
# Step 14: Get the certificate signed
sys.stderr.write("Requesting signature...\n")