Skip to content

Commit

Permalink
Update truenas_ws.sh (Output new certificate name)
Browse files Browse the repository at this point in the history
  • Loading branch information
Attackwave authored Nov 25, 2024
1 parent 4424033 commit ebaf4c9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions deploy/truenas_ws.sh
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ truenas_ws_deploy() {

_info "Upload new certificate..."
_certname="acme_$(_utc_date | tr -d '\-\:' | tr ' ' '_')"
_info "New WebUI certificate name: $_certname"
_debug _certname "$_certname"
_ws_jobid=$(_ws_call "certificate.create" "{\"name\": \"${_certname}\", \"create_type\": \"CERTIFICATE_CREATE_IMPORTED\", \"certificate\": \"$(_json_encode <"$_file_fullchain")\", \"privatekey\": \"$(_json_encode <"$_file_key")\", \"passphrase\": \"\"}")
_debug "_ws_jobid" "$_ws_jobid"
Expand Down

0 comments on commit ebaf4c9

Please sign in to comment.