mirror of
https://github.com/ThomasGsp/HyperProxmox.git
synced 2025-02-12 11:12:10 +00:00
Fix passphrase
This commit is contained in:
parent
65fb5e3c43
commit
70f5f033e3
1 changed files with 2 additions and 2 deletions
|
@ -69,7 +69,7 @@ if __name__ == "__main__":
|
|||
"\n - Public Key: {1}"
|
||||
.format(localconf['system']['key_pvt'], localconf['system']['key_pub']))
|
||||
print("Passphrase HASH: {0}".format(passhash))
|
||||
print("You MUST save your passphrase hash in a security place !")
|
||||
print("You MUST save your passphrase in a security place !")
|
||||
key_pvt = CritConf.read_private_key(localconf['system']['key_pvt'], passhash)
|
||||
else:
|
||||
print(gen['Error'])
|
||||
|
@ -87,7 +87,7 @@ if __name__ == "__main__":
|
|||
|
||||
""" Step two"""
|
||||
if 'passhash' not in vars():
|
||||
passhash = getpass.getpass("This system need a passphrase to start:")
|
||||
passhash = encodepassphrase(getpass.getpass("This system need a passphrase to start:"))
|
||||
key_pvt = CritConf.read_private_key(localconf['system']['key_pvt'], passhash)
|
||||
if key_pvt['result'] != "OK":
|
||||
print("{0}: {1} "
|
||||
|
|
Loading…
Reference in a new issue