mirror of
https://github.com/ThomasGsp/HyperProxmox.git
synced 2025-03-09 15:40:18 +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}"
|
"\n - Public Key: {1}"
|
||||||
.format(localconf['system']['key_pvt'], localconf['system']['key_pub']))
|
.format(localconf['system']['key_pvt'], localconf['system']['key_pub']))
|
||||||
print("Passphrase HASH: {0}".format(passhash))
|
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)
|
key_pvt = CritConf.read_private_key(localconf['system']['key_pvt'], passhash)
|
||||||
else:
|
else:
|
||||||
print(gen['Error'])
|
print(gen['Error'])
|
||||||
|
@ -87,7 +87,7 @@ if __name__ == "__main__":
|
||||||
|
|
||||||
""" Step two"""
|
""" Step two"""
|
||||||
if 'passhash' not in vars():
|
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)
|
key_pvt = CritConf.read_private_key(localconf['system']['key_pvt'], passhash)
|
||||||
if key_pvt['result'] != "OK":
|
if key_pvt['result'] != "OK":
|
||||||
print("{0}: {1} "
|
print("{0}: {1} "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue