mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-07 18:54:12 +00:00
style: Whitespace and quoting for shellcheck/shfmt conformity
This commit is contained in:
parent
6f53f92ed3
commit
9032fb99c7
@ -68,19 +68,19 @@ hpilo_deploy() {
|
||||
_info "Attempting to deploy certificate '$_ccert' to '$Le_Deploy_ilo_host'"
|
||||
|
||||
ilo_credentials="${Le_Deploy_ilo_username}:${Le_Deploy_ilo_password}"
|
||||
_secure_debug "HPILO_USERNAME:HPILO_PASSWORD" $ilo_credentials
|
||||
_secure_debug "HPILO_USERNAME:HPILO_PASSWORD" "$ilo_credentials"
|
||||
ilo_credentials_encoded=$(printf "%s" "$ilo_credentials" | _base64)
|
||||
export _H1="Authorization: Basic ${ilo_credentials_encoded}"
|
||||
_debug3 _H1 "$_H1"
|
||||
|
||||
ilo_redfish_httpscert_uri="https://${Le_Deploy_ilo_host}/redfish/v1/Managers/1/SecurityService/HttpsCert/"
|
||||
_debug2 ilo_redfish_httpscert_uri "$ilo_redfish_httpscert_uri"
|
||||
|
||||
|
||||
ilo_redfish_httpscert_body="{ \"Action\": \"ImportCertificate\", \"Certificate\": \"$(cat "$_ccert")\" }"
|
||||
|
||||
# Do not check for a valid SSL certificate, because initially the cert is not valid, so it could not install the LE generated certificate
|
||||
export HTTPS_INSECURE=1
|
||||
|
||||
|
||||
_post "$ilo_redfish_httpscert_body" "$ilo_redfish_httpscert_uri" "" "POST" "application/json"
|
||||
_ret="$?"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user