certbot: Fix HAProxy renewal hook

This commit is contained in:
Alexis Ben Miloud--Josselin 2024-03-04 15:00:01 +01:00
parent 78326e43e8
commit 8b68f03910
2 changed files with 3 additions and 1 deletions

View file

@ -17,6 +17,8 @@ The **patch** part is incremented if multiple releases happen the same month
### Fixed
* certbot: Fix HAProxy renewal hook
### Removed
### Security

View file

@ -30,7 +30,7 @@ concat_files() {
}
cert_and_key_mismatch() {
haproxy_cert_md5=$(openssl x509 -noout -pubkey -in "${haproxy_cert_file}" | openssl md5)
haproxy_key_md5=$(openssl pkey -noout -pubout -in "${haproxy_cert_file}" | openssl md5)
haproxy_key_md5=$(openssl pkey -pubout -in "${haproxy_cert_file}" | openssl md5)
test "${haproxy_cert_md5}" != "${haproxy_key_md5}"
}