DEHYDRATED_USER + --signcsr sends certificate output to stderr #527

Closed
opened 2025-12-29 01:26:48 +01:00 by adam · 1 comment
Owner

Originally created by @taam on GitHub (Apr 16, 2021).

command_sign_csr first does some IO redirection, then calls init_system, which might call sudo:
5c1551e946/dehydrated (L1762-L1767)

Solution might be as easy as calling init_system before doing the redirects, but I don't know the internals.

Originally created by @taam on GitHub (Apr 16, 2021). `command_sign_csr` first does some IO redirection, then calls `init_system`, which might call `sudo`: https://github.com/dehydrated-io/dehydrated/blob/5c1551e946456f534cf46b6ebabe4353bf0b0530/dehydrated#L1762-L1767 Solution might be as easy as calling `init_system` before doing the redirects, but I don't know the internals.
adam closed this issue 2025-12-29 01:26:48 +01:00
Author
Owner

@lukas2511 commented on GitHub (Apr 16, 2021):

Thx. I swapped the lines as suggested.

This will result in some informational messages being output to stdout as well, but that should be less of a problem as there was additional output before anyway and PEM format should ignore anything outside BEGIN/END blocks.

@lukas2511 commented on GitHub (Apr 16, 2021): Thx. I swapped the lines as suggested. This will result in some informational messages being output to stdout as well, but that should be less of a problem as there was additional output before anyway and PEM format should ignore anything outside BEGIN/END blocks.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#527