certbot: Fix HAProxy renewal hook
This commit is contained in:
parent
78326e43e8
commit
8b68f03910
|
@ -17,6 +17,8 @@ The **patch** part is incremented if multiple releases happen the same month
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
|
* certbot: Fix HAProxy renewal hook
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
### Security
|
### Security
|
||||||
|
|
|
@ -30,7 +30,7 @@ concat_files() {
|
||||||
}
|
}
|
||||||
cert_and_key_mismatch() {
|
cert_and_key_mismatch() {
|
||||||
haproxy_cert_md5=$(openssl x509 -noout -pubkey -in "${haproxy_cert_file}" | openssl md5)
|
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}"
|
test "${haproxy_cert_md5}" != "${haproxy_key_md5}"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue