mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-02-23 15:24:30 +01:00
don't read private key as the public key
git-svn-id: https://kippo.googlecode.com/svn/trunk@94 951d7100-d841-11de-b865-b3884708a8e2
This commit is contained in:
@@ -340,7 +340,7 @@ def getRSAKeys():
|
||||
file(private_key, 'w+b').write(privateKeyString)
|
||||
print "done."
|
||||
else:
|
||||
publicKeyString = file(private_key).read()
|
||||
publicKeyString = file(public_key).read()
|
||||
privateKeyString = file(private_key).read()
|
||||
return publicKeyString, privateKeyString
|
||||
|
||||
|
||||
Reference in New Issue
Block a user