mirror of https://github.com/huashengdun/webssh
Fix Passphrase Disclosure
parent
3c5b4ad8f9
commit
3639dcc33a
|
@ -178,8 +178,7 @@ class PrivateKey(object):
|
||||||
logging.error(str(self.last_exception))
|
logging.error(str(self.last_exception))
|
||||||
msg = 'Invalid key'
|
msg = 'Invalid key'
|
||||||
if self.password:
|
if self.password:
|
||||||
msg += ' or wrong passphrase "{}" for decrypting it.'.format(
|
msg += ' or wrong passphrase for decrypting it.'
|
||||||
self.password)
|
|
||||||
raise InvalidValueError(msg)
|
raise InvalidValueError(msg)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue