certificate-specific config does not work with values containing space #512

Closed
opened 2025-12-29 01:26:34 +01:00 by adam · 2 comments
Owner

Originally created by @zhangyoufu on GitHub (Dec 7, 2020).

PREFERRED_CHAIN='DST Root CA X3'

failed with

ERROR: Alternative chain with CN = 'DST Root CA X3' not found, available options: DST Root CA X3, ISRG Root X1

The parsing logic for certificate-specific config does not handle quotes correctly. See
589e9f30b3/dehydrated (L1600-L1627)

Originally created by @zhangyoufu on GitHub (Dec 7, 2020). ``` PREFERRED_CHAIN='DST Root CA X3' ``` failed with ``` ERROR: Alternative chain with CN = 'DST Root CA X3' not found, available options: DST Root CA X3, ISRG Root X1 ``` The parsing logic for certificate-specific config does not handle quotes correctly. See https://github.com/dehydrated-io/dehydrated/blob/589e9f30b383751a927d745e83c0c53bf42a195c/dehydrated#L1600-L1627
adam closed this issue 2025-12-29 01:26:34 +01:00
Author
Owner

@lukas2511 commented on GitHub (Dec 9, 2020):

I tried a simpler fix first, which seemed at least a tiny bit cleaner on first sight. I should find a better way for doing these checks...

@lukas2511 commented on GitHub (Dec 9, 2020): I tried a simpler fix first, which seemed at least a tiny bit cleaner on first sight. I should find a better way for doing these checks...
Author
Owner

@zhangyoufu commented on GitHub (Dec 10, 2020):

Trim single quotes from config_value does fix the issue for my use case. I'm looking forward to a better way.

$ FOO="'"
$ set | fgrep FOO=
FOO=\'
@zhangyoufu commented on GitHub (Dec 10, 2020): Trim single quotes from config_value does fix the issue for my use case. I'm looking forward to a better way. ``` $ FOO="'" $ set | fgrep FOO= FOO=\' ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#512