Can't make the -o option work #223

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

Originally created by @mrik974 on GitHub (Jun 6, 2017).

Hi,
I'm using 0.4.0 version with different hooks (including one that only prints the token and lets me 60 seconds to modify the DNS myself)
I wanted to use dehydrated in a script and tried to use the -o option, but it fails to put the pem files in the specified directory.
My user has the correct right for the specified directory (it was created with the script to contain the csr file)
Then I use this command:
./dehydrated -s 'certs/<domain_name>.csr' -d <domain_name> -t dns-01 -k 'hooks/ovh/hook.py' --out 'certs/<domain_name>'
But the certificate is printed in stdout and the directory remains empty. Is there something i'm doing wrong ?

Originally created by @mrik974 on GitHub (Jun 6, 2017). Hi, I'm using 0.4.0 version with different hooks (including one that only prints the token and lets me 60 seconds to modify the DNS myself) I wanted to use dehydrated in a script and tried to use the `-o` option, but it fails to put the pem files in the specified directory. My user has the correct right for the specified directory (it was created with the script to contain the csr file) Then I use this command: `./dehydrated -s 'certs/<domain_name>.csr' -d <domain_name> -t dns-01 -k 'hooks/ovh/hook.py' --out 'certs/<domain_name>'` But the certificate is printed in `stdout` and the directory remains empty. Is there something i'm doing wrong ?
adam closed this issue 2025-12-29 01:19:15 +01:00
Author
Owner

@txr13 commented on GitHub (Jun 6, 2017):

Well, the parameter description for -s should give you a hint...

Sign a given CSR, output CRT on stdout (advanced usage)

The -o parameter isn't used when you're just signing a CSR. It will only print to stdout.

@txr13 commented on GitHub (Jun 6, 2017): Well, the parameter description for `-s` should give you a hint... `Sign a given CSR, output CRT on stdout (advanced usage)` The `-o` parameter isn't used when you're just signing a CSR. It will only print to stdout.
Author
Owner

@mrik974 commented on GitHub (Jun 6, 2017):

My bad, indeed I was missing something. Thank you

@mrik974 commented on GitHub (Jun 6, 2017): My bad, indeed I was missing something. Thank you
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/dehydrated#223