forked from seba/servefile
Added status message for keypair generation
This commit is contained in:
parent
6820011c67
commit
15d4890e3b
|
@ -344,6 +344,9 @@ class ServeFile():
|
|||
self.key = key
|
||||
|
||||
def genKeyPair(self):
|
||||
print "Generating SSL certificate...",
|
||||
sys.stdout.flush()
|
||||
|
||||
pkey = crypto.PKey()
|
||||
pkey.generate_key(crypto.TYPE_RSA, 2048)
|
||||
|
||||
|
@ -379,6 +382,8 @@ class ServeFile():
|
|||
self.cert = cert
|
||||
self.key = pkey
|
||||
|
||||
print "done."
|
||||
|
||||
def _getCert(self):
|
||||
return self.cert
|
||||
|
||||
|
|
Loading…
Reference in New Issue