more curses updates

This commit is contained in:
Seth Schoen
2012-08-10 18:04:08 -07:00
parent 215c305842
commit 931ca5701e
+6
View File
@@ -259,8 +259,14 @@ def authenticate():
if r.success.chain: if r.success.chain:
with open(chain_file, "w") as f: with open(chain_file, "w") as f:
f.write(r.success.chain) f.write(r.success.chain)
if curses:
shower.add("Server issued certificate; certificate written to " + cert_file)
else:
print "Server issued certificate; certificate written to " + cert_file print "Server issued certificate; certificate written to " + cert_file
if r.success.chain: if r.success.chain:
if curses:
shower.add("Cert chain written to " + chain_file)
else:
print "Cert chain written to " + chain_file print "Cert chain written to " + chain_file
# TODO: Uncomment the following assignment when the server # TODO: Uncomment the following assignment when the server
# presents a valid chain # presents a valid chain