Added status message for keypair generation

This commit is contained in:
Sebastian Lohff 2012-04-16 16:36:31 +02:00
parent 6820011c67
commit 15d4890e3b
1 changed files with 5 additions and 0 deletions

View File

@ -344,6 +344,9 @@ class ServeFile():
self.key = key self.key = key
def genKeyPair(self): def genKeyPair(self):
print "Generating SSL certificate...",
sys.stdout.flush()
pkey = crypto.PKey() pkey = crypto.PKey()
pkey.generate_key(crypto.TYPE_RSA, 2048) pkey.generate_key(crypto.TYPE_RSA, 2048)
@ -378,6 +381,8 @@ class ServeFile():
self.cert = cert self.cert = cert
self.key = pkey self.key = pkey
print "done."
def _getCert(self): def _getCert(self):
return self.cert return self.cert