mirror of
https://github.com/plantroon/acme.sh.git
synced 2024-12-25 06:31:42 +00:00
implement basic haproxy deploy
HAProxy requires the certificate chain and key to be concatenated and placed somewhere (can be anywhere). This script expects a single environment variable with the path where the concatenated PEM file should be written
This commit is contained in:
parent
edb4d066a9
commit
360dc140ea
@ -20,7 +20,16 @@ haproxy_deploy() {
|
|||||||
_debug _cca "$_cca"
|
_debug _cca "$_cca"
|
||||||
_debug _cfullchain "$_cfullchain"
|
_debug _cfullchain "$_cfullchain"
|
||||||
|
|
||||||
_err "deploy cert to haproxy server, Not implemented yet"
|
# combine the key and fullchain into a single pem and install
|
||||||
return 1
|
_savedomainconf DEPLOY_HAPROXY_PEM_PATH "$DEPLOY_HAPROXY_PEM_PATH"
|
||||||
|
|
||||||
|
_pem_full_path="$DEPLOY_HAPROXY_PEM_PATH/$_cdomain.pem"
|
||||||
|
_info "Full path to PEM $_pem_full_path"
|
||||||
|
|
||||||
|
cat "$_cfullchain" "$_ckey" > "$_pem_full_path"
|
||||||
|
chmod 600 "$_pem_full_path"
|
||||||
|
|
||||||
|
_info "Certificate successfully deployed"
|
||||||
|
return 0
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user