From 97e7b1a7b23120802edce232e981960d35c9e154 Mon Sep 17 00:00:00 2001 From: Seth Schoen Date: Wed, 4 Jul 2012 22:05:41 -0700 Subject: [PATCH] I forgot, I have a stub in CSR.py that already pretends to issue certs :-) --- client-webserver/daemon.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client-webserver/daemon.py b/client-webserver/daemon.py index 4617b25f0..692072309 100644 --- a/client-webserver/daemon.py +++ b/client-webserver/daemon.py @@ -26,7 +26,7 @@ # If the client never checks in, the daemon can keep advancing # the request's state, which may not be the right behavior. -import redis, time +import redis, time, CSR r = redis.Redis() from Crypto.Hash import SHA256, HMAC @@ -132,8 +132,10 @@ def issue(session): return # Note that we can push this back into the original queue. # TODO: need to add a way to make sure we don't test the same - # TODO: actually issue the cert - r.hset(session, "cert", "----ISSUED CERT GOES HERE----") + # TODO: actually make this call issue the cert + csr = r.hget(session, "csr") + cert = CSR.issue(csr) + r.hset(session, "cert", cert) if False: # once issuing cert succeeded r.hset(session, "state", "done") r.lpush("pending-done", session)