Browse Source

Update truenas_ws.sh (Output new certificate name)

pull/6108/head
Attackwave 4 weeks ago
committed by GitHub
parent
commit
ebaf4c9c01
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      deploy/truenas_ws.sh

1
deploy/truenas_ws.sh

@ -201,6 +201,7 @@ truenas_ws_deploy() {
_info "Upload new certificate..." _info "Upload new certificate..."
_certname="acme_$(_utc_date | tr -d '\-\:' | tr ' ' '_')" _certname="acme_$(_utc_date | tr -d '\-\:' | tr ' ' '_')"
_info "New WebUI certificate name: $_certname"
_debug _certname "$_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\": \"\"}") _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" _debug "_ws_jobid" "$_ws_jobid"

Loading…
Cancel
Save