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:
desaster 2009-11-25 19:38:17 +00:00
parent 04fd72b436
commit 76876dd2c2
1 changed files with 2 additions and 2 deletions

View File

@ -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()