mirror of https://github.com/cowrie/cowrie.git
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:
parent
113ec048ef
commit
4438ff5d04
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue