My domain is: https://unrau.family
I ran these commands:
cd "C:\Users\Kyle Unrau\Documents\Web Services\Nameserver\Assets\Executables"
certbot renew --dry-run --manual-auth-hook CertificateRenewal.bat
It produced this output:
Failed to renew certificate unrau.family with error: manual-auth-hook command CertificateRenewal.bat exists, but is not executable.
My web server is: Custom Build (i.e., NodeJS HTTP/HTTPS Server)
My name server is: Custom Build (i.e., NodeJS DNS Server)
The operating system my web server runs on is: Windows 10
My hosting provider is: GoDaddy (Not relevant)
I can login to a root shell on my machine: Yes
I'm using a control panel to manage my site: No
The version of my client is: 1.24.0
Hi, I was looking at the forums and I wasn't able to find anything regarding my issue. I've been attempting to call a .bat file to take the environmental variables given by Certbot to communicate with a NodeJS server and was able to successfully communicate the validation keys to the server which is all that I need to update the acme-challenge TXT file. The only issue I've ran into and haven't been able to figure out is how I would be able to call that .bat file given that the path of that file includes space characters. I've tried a number of ways to get around this issue and none have seemed to work except if the path doesn't include any spaces and I was hoping someone could shed some light on how I could work around this.
I initially tried to simply set up the manual auth hook by using double quotation marks around the file name; however, it seems as though Certbots command-line is somewhat primitive in that arguments are simply divided by a space character without regard for double quotation marks. I tried using the command:
certbot renew --dry-run --manual-auth-hook "C:\Users\Kyle Unrau\Documents\Web Services\Nameserver\Assets\Executables\CertificateRenewal.bat"
but when I do it returns the error
Failed to renew certificate unrau.family with error: Unable to find manual-auth-hook command C:\Users\Kyle in the PATH
suggesting that the first space character it encounters cuts off the remaining path. To try and work around this I have also tried using a caret (^) to try and escape the space character as well as backtick/grave accent (`) but I have not been able to find a way to call the .bat file using an escape character. My last solution that I thought could have worked was to use the "cd" command to reference the files respective parent folder by executing the command:
cd "C:\Users\Kyle Unrau\Documents\Web Services\Nameserver\Assets\Executables"
and then running the command:
certbot renew --dry-run --manual-auth-hook CertificateRenewal.bat
which ended up giving me a new error I had not seen before saying
Failed to renew certificate unrau.family with error: manual-auth-hook command CertificateRenewal.bat exists, but is not executable.
which confused me as the .bat file is executable and does run successfully given the path does not include any space characters. It was my assumption that Certbot has limited support for space characters on a Windows operating system but I just wanted to verify on the community forums if anyone has any suggestions or answers regarding this matter so I don't have to rename my folders with space characters (including my user directory folder [C:\Users\Kyle Unrau]) and all references to files within those folders.
Any help would be greatly appreciated as I've been trying to figure this issue out for a little too long and don't want to try looking for alternatives to Certbot.