acmesh-official / acme.sh

A pure Unix shell script implementing ACME client protocol
https://acme.sh
GNU General Public License v3.0
39.41k stars 4.98k forks source link

Deploy tool is not working as expected for HAProxy #4788

Open podguzovvasily opened 1 year ago

podguzovvasily commented 1 year ago

Steps to reproduce

I got the certificate from letsencrypt for HAproxy using the commands:

  1. acme.sh --issue -d www.my-domain.com --dns --yes-I-know-dns-manual-mode-enough-go-ahead-please --server letsencrypt --log --force --renew
  2. DEPLOY_HAPROXY_HOT_UPDATE=yes DEPLOY_HAPROXY_STATS_SOCKET=/var/run/haproxy/admin.sock DEPLOY_HAPROXY_PEM_PATH=/etc/haproxy/certs acme.sh --deploy -d www.my-domain.com --deploy-hook haproxy

Everything works, but when I scan the certificate with the ssllabs tool, I see a score of b and the message that "This server's certificate chain is incomplete. Grade capped to B."

It looks like the deploy tool is not working as expected. Please help.

\

github-actions[bot] commented 1 year ago

Please upgrade to the latest code and try again first. Maybe it's already fixed. acme.sh --upgrade If it's still not working, please provide the log with --debug 2, otherwise, nobody can help you.

podguzovvasily commented 1 year ago

Upgrade acme.sh --upgrade was successfull

log with --debug 2:

root@HAProxy:~# sudo -u acme -s acme@HAProxy:/root$ DEPLOY_HAPROXY_HOT_UPDATE=yes DEPLOY_HAPROXY_STATS_SOCKET=/var/run/haproxy/admin.sock DEPLOY_HAPROXY_PEM_PATH=/etc/haproxy/certs acme.sh --deploy -d www.basil-student.ru --deploy-hook haproxy --debug 2 [Fri Sep 8 07:47:46 UTC 2023] Lets find script dir. [Fri Sep 8 07:47:46 UTC 2023] SCRIPT='/usr/local/bin/acme.sh' [Fri Sep 8 07:47:46 UTC 2023] _script='/usr/local/share/acme.sh/acme.sh' [Fri Sep 8 07:47:46 UTC 2023] _script_home='/usr/local/share/acme.sh' [Fri Sep 8 07:47:46 UTC 2023] Using default home:/var/lib/acme/.acme.sh [Fri Sep 8 07:47:46 UTC 2023] Using config home:/var/lib/acme/.acme.sh [Fri Sep 8 07:47:46 UTC 2023] LE_WORKING_DIR='/var/lib/acme/.acme.sh' https://github.com/acmesh-official/acme.sh v3.0.7 [Fri Sep 8 07:47:46 UTC 2023] Running cmd: deploy [Fri Sep 8 07:47:46 UTC 2023] Using config home:/var/lib/acme/.acme.sh [Fri Sep 8 07:47:46 UTC 2023] default_acme_server [Fri Sep 8 07:47:46 UTC 2023] ACME_DIRECTORY='https://acme.zerossl.com/v2/DV90' [Fri Sep 8 07:47:46 UTC 2023] _ACME_SERVER_HOST='acme.zerossl.com' [Fri Sep 8 07:47:46 UTC 2023] _ACME_SERVER_PATH='v2/DV90' [Fri Sep 8 07:47:46 UTC 2023] The domain 'www.basil-student.ru' seems to have a ECC cert already, lets use ecc cert. [Fri Sep 8 07:47:46 UTC 2023] DOMAIN_PATH='/var/lib/acme/.acme.sh/www.basil-student.ru_ecc' [Fri Sep 8 07:47:46 UTC 2023] DOMAIN_CONF='/var/lib/acme/.acme.sh/www.basil-student.ru_ecc/www.basil-student.ru.conf' [Fri Sep 8 07:47:46 UTC 2023] _deployApi='/usr/local/share/acme.sh/deploy/haproxy.sh' [Fri Sep 8 07:47:46 UTC 2023] _cdomain='www.basil-student.ru' [Fri Sep 8 07:47:46 UTC 2023] _ckey='/var/lib/acme/.acme.sh/www.basil-student.ru_ecc/www.basil-student.ru.key' [Fri Sep 8 07:47:46 UTC 2023] _ccert='/var/lib/acme/.acme.sh/www.basil-student.ru_ecc/www.basil-student.ru.cer' [Fri Sep 8 07:47:46 UTC 2023] _cca='/var/lib/acme/.acme.sh/www.basil-student.ru_ecc/ca.cer' [Fri Sep 8 07:47:46 UTC 2023] _cfullchain='/var/lib/acme/.acme.sh/www.basil-student.ru_ecc/fullchain.cer' [Fri Sep 8 07:47:46 UTC 2023] DEPLOY_HAPROXY_PEM_PATH='/etc/haproxy/certs' [Fri Sep 8 07:47:46 UTC 2023] PEM_PATH /etc/haproxy/certs exists [Fri Sep 8 07:47:46 UTC 2023] DEPLOY_HAPROXY_PEM_NAME [Fri Sep 8 07:47:46 UTC 2023] DEPLOY_HAPROXY_BUNDLE [Fri Sep 8 07:47:46 UTC 2023] DEPLOY_HAPROXY_ISSUER [Fri Sep 8 07:47:46 UTC 2023] DEPLOY_HAPROXY_RELOAD [Fri Sep 8 07:47:46 UTC 2023] DEPLOY_HAPROXY_HOT_UPDATE='yes' [Fri Sep 8 07:47:46 UTC 2023] DEPLOY_HAPROXY_STATS_SOCKET='/var/run/haproxy/admin.sock' [Fri Sep 8 07:47:46 UTC 2023] _suffix [Fri Sep 8 07:47:46 UTC 2023] Deploying PEM file [Fri Sep 8 07:47:46 UTC 2023] _temppem='/tmp/tmp.xWna3SWYbt' [Fri Sep 8 07:47:46 UTC 2023] Moving new certificate into place [Fri Sep 8 07:47:46 UTC 2023] _pem='/etc/haproxy/certs/www.basil-student.ru.pem' [Fri Sep 8 07:47:46 UTC 2023] _socat_cert_cmd='echo 'show ssl cert' | socat /var/run/haproxy/admin.sock - | grep -q '^/etc/haproxy/certs/www.basil-student.ru.pem$'' [Fri Sep 8 07:47:46 UTC 2023] Update existing certificate '/etc/haproxy/certs/www.basil-student.ru.pem' over HAProxy stats socket. [Fri Sep 8 07:47:46 UTC 2023] _socat_cert_set_cmd='echo -e 'set ssl cert /etc/haproxy/certs/www.basil-student.ru.pem <<\n-----BEGIN EC PRIVATE KEY----- MHcCAQEEIKqkk1rZcu4/tD-fYh6SrLX8QBzWyIpRyUhJkgItok6YoAoGCCqGSM49 AwEHoUQDQgAEj7fUB56An-/SwBPDwKm0+c2Jx4VPhak5YMMGYUr76vY+Ky8KYPg5 pJrhobIEtMkTLzltcjGGFmB62kuRK6NJsw== -----END EC PRIVATE KEY----- -----BEGIN CERTIFICATE----- MIIEKzCCAxOgAwIBAgISAzj66JRu4kEof8HV5WFLXCYUMA0GCSqGSIb3DQEBCwUA MDIxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1MZXQncyBFbmNyeXB0MQswCQYDVQQD EwJSMzAeFw0yMzA5MDcxOTU4NTlaFw0yMzEyMDYxOTU4NTh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AfBgNVHSMEGDAWgBTEp7Gkeyxx +tvhS5B1/8QVYIWJEDBUBgNVHSAETTBLMAgGBmeBDAECATA/BgsrBgEEAYLfEwEB ATAwMC4GCCsGAQUFBwIBFiJodHRwOi8vY3BzLnJvb3QteDEubGV0c2VuY3J5cHQu b3JnMDwGA1UdHwQ1MDMwMaAvoC2GK2h0dHA6Ly9jcmwuaWRlbnRydXN0LmNvbS9E U1RST09UQ0FYM0NSTC5jcmwwHQYDVR0OBBYEFHm0WeZ7tuXkAXOACIjIGlj26Ztu MA0GCSqGSIb3DQEBCwUAA4IBAQAKcwBslm7/DlLQrt2M51oGrS+o44+/yQoDFVDC 5WxCu2+b9LRPwkSICHXM6webFGJueN7sJ7o5XPWioW5WlHAQU7G75K/QosMrAdSW 9MUgNTP52GE24HGNtLi1qoJFlcDyqSMo59ahy2cI2qBDLKobkx/J3vWraV0T9VuG WCLKTVXkcGdtwlfFRjlBz4pYg1htmf5X6DYO8A4jqv2Il9DjXA6USbW1FzXSLr9O he8Y4IWS6wY7bCkjCWDcRQJMEhg76fsO3txE+FiYruq9RUWhiF1myv4Q6W+CyBFC Dfvp7OOGAN6dEOM4+qR9sdjoSYKEBpsr6GtPAQw4dy753ec5 -----END CERTIFICATE-----\n' | socat 'UNIX:/var/run/haproxy/admin.sock' - | grep -q 'Transaction created'' 2023/09/08 07:47:46 socat[32371] E write(1, 0x55a1dbf4a000, 683): Broken pipe [Fri Sep 8 07:47:46 UTC 2023] _socat_cert_commit_cmd='echo 'commit ssl cert /etc/haproxy/certs/www.basil-student.ru.pem' | socat 'UNIX:/var/run/haproxy/admin.sock' - | grep -q '^Success!$'' [Fri Sep 8 07:47:46 UTC 2023] Success

podguzovvasily commented 1 year ago

Yesterday I resolved that. Private key from combined certificate pem file must be at the end of the file, not in start. https://serversforhackers.com/c/letsencrypt-with-haproxy

wlallemand commented 11 months ago

That's not your problem, your problem is that the haproxy CLI uses an empty line as the end of the payload. So It will be closed at the first empty line. It look likes you are using https://github.com/acmesh-official/acme.sh/pull/4581 and not the current acme.sh deploy script, I will update the PR.

wlallemand commented 11 months ago

Just pushed an update to be compatible with this case.

jhjadmin commented 11 months ago

Hi,

for me, the in place deployment of certificate renewals (letsencrypt) is not working anymore (so I think since end of last week). Same error, certificate chain incomplete. After restarting haproxy service, everything works as usual. This is reproduceable: Just renew certificate (with --force) and deploy without restarting haproxy service > Check ssllabs for incomplete certificate chain > restart haproxy service > check ssllabs for complete certificate chain

acme version: 3.0.7 haproxy version: 2.8.4

wlallemand commented 11 months ago

@jhjadmin what do you mean by "in place" deployment? are you using #4581? what is your acme.sh configuration?

wlallemand commented 11 months ago

The DEPLOY_HAPROXY_HOT_UPDATE and DEPLOY_HAPROXY_STATS_SOCKET variables are not official options of acme.sh, they are part of the mentioned Pull Request.

jhjadmin commented 11 months ago

@jhjadmin what do you mean by "in place" deployment? are you using #4581? what is your acme.sh configuration?

Yes, I mean that PR, so probably this is the wrong place here to discuss. :-)

And I use this as described here: https://www.haproxy.com/blog/haproxy-and-let-s-encrypt

wlallemand commented 11 months ago

@jhjadmin the latest documentation is available here https://github.com/haproxy/wiki/wiki/Letsencrypt-integration-with-HAProxy-and-acme.sh but that's slightly the same. Could you please update the deploy/haproxy.sh file and try again ?

curl https://raw.githubusercontent.com/haproxy/haproxy/master/admin/acme.sh/haproxy.sh > /usr/local/share/acme.sh/deploy/haproxy.sh

Please share your output with --debug 2 (by removing the base64 which contains your private key).

jhjadmin commented 11 months ago

Thank you very much, updating the deploy script seems to work. No restart of haproxy service with complete certificate chain now.

But anyway the output of the deploy command:

[Mo 4. Dez 12:16:47 CET 2023] _is_idn_d='example.org'
[Mo 4. Dez 12:16:47 CET 2023] _idn_temp
[Mo 4. Dez 12:16:47 CET 2023] Lets find script dir.
[Mo 4. Dez 12:16:47 CET 2023] _SCRIPT_='/usr/local/bin/acme.sh'
[Mo 4. Dez 12:16:47 CET 2023] _script='/usr/local/share/acme.sh/acme.sh'
[Mo 4. Dez 12:16:47 CET 2023] _script_home='/usr/local/share/acme.sh'
[Mo 4. Dez 12:16:47 CET 2023] Using default home:/var/lib/acme/.acme.sh
[Mo 4. Dez 12:16:47 CET 2023] Using config home:/var/lib/acme/.acme.sh
[Mo 4. Dez 12:16:47 CET 2023] LE_WORKING_DIR='/var/lib/acme/.acme.sh'
https://github.com/acmesh-official/acme.sh
v3.0.7
[Mo 4. Dez 12:16:47 CET 2023] Running cmd: deploy
[Mo 4. Dez 12:16:47 CET 2023] Using config home:/var/lib/acme/.acme.sh
[Mo 4. Dez 12:16:47 CET 2023] default_acme_server
[Mo 4. Dez 12:16:47 CET 2023] ACME_DIRECTORY='https://acme.zerossl.com/v2/DV90'
[Mo 4. Dez 12:16:47 CET 2023] _ACME_SERVER_HOST='acme.zerossl.com'
[Mo 4. Dez 12:16:47 CET 2023] _ACME_SERVER_PATH='v2/DV90'
[Mo 4. Dez 12:16:47 CET 2023] The domain 'example.org' seems to have a ECC cert already, lets use ecc cert.
[Mo 4. Dez 12:16:47 CET 2023] DOMAIN_PATH='/var/lib/acme/.acme.sh/example.org_ecc'
[Mo 4. Dez 12:16:47 CET 2023] DOMAIN_CONF='/var/lib/acme/.acme.sh/example.org_ecc/example.org.conf'
[Mo 4. Dez 12:16:47 CET 2023] _deployApi='/usr/local/share/acme.sh/deploy/haproxy.sh'
[Mo 4. Dez 12:16:47 CET 2023] _cdomain='example.org'
[Mo 4. Dez 12:16:47 CET 2023] _ckey='/var/lib/acme/.acme.sh/example.org_ecc/example.org.key'
[Mo 4. Dez 12:16:47 CET 2023] _ccert='/var/lib/acme/.acme.sh/example.org_ecc/example.org.cer'
[Mo 4. Dez 12:16:48 CET 2023] _cca='/var/lib/acme/.acme.sh/example.org_ecc/ca.cer'
[Mo 4. Dez 12:16:48 CET 2023] _cfullchain='/var/lib/acme/.acme.sh/example.org_ecc/fullchain.cer'
[Mo 4. Dez 12:16:48 CET 2023] DEPLOY_HAPROXY_PEM_PATH='/etc/haproxy/certs'
[Mo 4. Dez 12:16:48 CET 2023] PEM_PATH /etc/haproxy/certs exists
[Mo 4. Dez 12:16:48 CET 2023] DEPLOY_HAPROXY_PEM_NAME
[Mo 4. Dez 12:16:48 CET 2023] DEPLOY_HAPROXY_BUNDLE
[Mo 4. Dez 12:16:48 CET 2023] DEPLOY_HAPROXY_ISSUER
[Mo 4. Dez 12:16:48 CET 2023] DEPLOY_HAPROXY_RELOAD
[Mo 4. Dez 12:16:48 CET 2023] DEPLOY_HAPROXY_HOT_UPDATE='yes'
[Mo 4. Dez 12:16:48 CET 2023] DEPLOY_HAPROXY_STATS_SOCKET='/var/run/haproxy/admin.sock'
[Mo 4. Dez 12:16:48 CET 2023] DEPLOY_HAPROXY_MASTER_CLI
[Mo 4. Dez 12:16:48 CET 2023] _suffix
[Mo 4. Dez 12:16:48 CET 2023] Deploying PEM file
[Mo 4. Dez 12:16:48 CET 2023] _temppem='/tmp/tmp.P20ANk1dDR'
[Mo 4. Dez 12:16:48 CET 2023] Moving new certificate into place
[Mo 4. Dez 12:16:48 CET 2023] _pem='/etc/haproxy/certs/example.org.pem'
[Mo 4. Dez 12:16:48 CET 2023] _socat_cert_cmd='echo 'show ssl cert' | socat '/var/run/haproxy/admin.sock' - | grep -q '^/etc/haproxy/certs/example.org.pem$''
[Mo 4. Dez 12:16:48 CET 2023] Update existing certificate '/etc/haproxy/certs/example.org.pem' over HAProxy stats socket.
[Mo 4. Dez 12:16:48 CET 2023] _socat_cert_set_cmd='echo -e 'set ssl cert /etc/haproxy/certs/example.org.pem <<\n-----BEGIN CERTIFICATE-----
snip
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
snip
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
snip
-----END CERTIFICATE-----
-----BEGIN EC PRIVATE KEY-----
snip
-----END EC PRIVATE KEY-----\n' | socat '/var/run/haproxy/admin.sock' - | grep -q 'Transaction created''
[Mo 4. Dez 12:16:48 CET 2023] _socat_cert_commit_cmd='echo 'commit ssl cert /etc/haproxy/certs/example.org.pem' | socat '/var/run/haproxy/admin.sock' - | grep -q '^Success!$''
[Mo 4. Dez 12:16:48 CET 2023] Success
wlallemand commented 11 months ago

@jhjadmin okay, thanks, good to know! @podguzovvasily do you still have problems with your deployment?