]> git.proxmox.com Git - mirror_acme.sh.git/commit
Make certificate descriptions sed safe
authorBrian Hartvigsen <brian.andrew@brianandjenny.com>
Wed, 26 May 2021 21:07:23 +0000 (15:07 -0600)
committerBrian Hartvigsen <brian.andrew@brianandjenny.com>
Wed, 26 May 2021 21:25:58 +0000 (15:25 -0600)
commit74a4a788b142d9febe351da61a86636542aba2f9
tree75bd1623270c42f79c26771d1e197949c2828457
parent7909273a21434b507d3330a9c34a0687b6799bff
Make certificate descriptions sed safe

This escapes special characters used in POSIX sed to prevent mismatches.
e.g. `SYNO_Certficiate=*.example.com` would not match a description of
"*.example.com" and would look to match any number of double quotes (the
last character in the sed regex prior to certificate description),
followed by any single character, followed by "example", followed by any
character, followed by "com".

After this change, it will properly match `*.example.com` and not
`""zexamplefcom`.

Additionally we now store the certificate description as base64 encoded
to prevent issues with single quotes.

Tested on DSM 7.0-41222 (VDSM) and DSM 6.2.4-25556 (DS1515+).
deploy/synology_dsm.sh