Browse Source
Merge pull request #6594 from rglidden/truenas_25.10_fix
truenas_ws: Fix TrueNAS deploy fails on TrueNAS 25.10 due to invalid passphrase
pull/6333/merge
neil
1 day ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
1 additions and
1 deletions
-
deploy/truenas_ws.sh
|
|
@ -71,7 +71,7 @@ with Client(uri="$_ws_uri") as c: |
|
|
fullchain = file.read() |
|
|
fullchain = file.read() |
|
|
with open('$2', 'r') as file: |
|
|
with open('$2', 'r') as file: |
|
|
privatekey = file.read() |
|
|
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"])) |
|
|
print("R:" + str(ret["id"])) |
|
|
sys.exit(0) |
|
|
sys.exit(0) |
|
|
else: |
|
|
else: |
|
|
|