mirror of https://github.com/desaster/kippo.git
write keypair to the files from kippo.cfg
git-svn-id: https://kippo.googlecode.com/svn/trunk@80 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
parent
04fd72b436
commit
76876dd2c2
|
@ -330,8 +330,8 @@ def getRSAKeys():
|
|||
publicKeyString = keys.makePublicKeyString(rsaKey)
|
||||
privateKeyString = keys.makePrivateKeyString(rsaKey)
|
||||
# save keys for next time
|
||||
file('public.key', 'w+b').write(publicKeyString)
|
||||
file('private.key', 'w+b').write(privateKeyString)
|
||||
file(cfg.get('honeypot', 'public_key'), 'w+b').write(publicKeyString)
|
||||
file(cfg.get('honeypot', 'private_key'), 'w+b').write(privateKeyString)
|
||||
print "done."
|
||||
else:
|
||||
cfg = config()
|
||||
|
|
Loading…
Reference in New Issue