From f163ade1159d9165df31e4bda25d1a362dd6d6a0 Mon Sep 17 00:00:00 2001 From: Peter Eckersley Date: Sun, 12 Aug 2012 21:55:25 -0700 Subject: [PATCH] Demo a choice of CAs --- trustify/client/client.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/trustify/client/client.py b/trustify/client/client.py index e1e8481e9..50d7fc703 100644 --- a/trustify/client/client.py +++ b/trustify/client/client.py @@ -52,6 +52,13 @@ def filter_names(names): sys.exit(1) return result[1] +def choice_of_ca(): + # XXX This is a stub + d = dialog.Dialog() + choices = [("EFF", "The EFF Trustify CA"), ("UMich", "The Michigan Trustify CA")] + random.shuffle(choices) + result = d.menu("Pick a Certificate Authority. They're all unique and special!", width=70, choices=choices) + # based on M2Crypto unit test written by Toby Allsopp from M2Crypto import EVP, X509, RSA @@ -237,8 +244,7 @@ def authenticate(): if curses: names = filter_names(names) - - if curses: + choice_of_ca() shower = progress_shower() # Check first if mod_ssl is loaded