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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user