Merge pull request #6594 from rglidden/truenas_25.10_fix

truenas_ws: Fix TrueNAS deploy fails on TrueNAS 25.10 due to invalid passphrase
This commit is contained in:
neil
2025-11-09 18:10:08 +01:00
committed by GitHub

View File

@@ -71,7 +71,7 @@ with Client(uri="$_ws_uri") as c:
fullchain = file.read()
with open('$2', 'r') as file:
privatekey = file.read()
ret = c.call("certificate.create", {"name": "$3", "create_type": "CERTIFICATE_CREATE_IMPORTED", "certificate": fullchain, "privatekey": privatekey, "passphrase": ""}, job=True)
ret = c.call("certificate.create", {"name": "$3", "create_type": "CERTIFICATE_CREATE_IMPORTED", "certificate": fullchain, "privatekey": privatekey}, job=True)
print("R:" + str(ret["id"]))
sys.exit(0)
else: