1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-26 07:41:33 +03:00

mint hashcash with expiry stated down to the second

This commit is contained in:
Seth Schoen
2012-07-18 22:31:54 -07:00
parent 6f5d15cddf
commit c89a0e8f8e

View File

@@ -68,7 +68,7 @@ def make_request(m, csr):
m.request.recipient = server
m.request.timestamp = int(time.time())
m.request.csr = csr
hashcash_command = "hashcash -P -m -b %d -r %s" % (difficulty, server)
hashcash_command = "hashcash -P -m -b %d -r %s -z 12" % (difficulty, server)
hashcash = subprocess.check_output(hashcash_command.split(), preexec_fn=drop_privs, shell=False).rstrip()
if hashcash: m.request.clientpuzzle = hashcash