Hello. I am running Apache 2.4 on Windows 10 and I use Certbot for my certificate.
I had a drive crash yesterday and had to restore the server from backup, which took about 10 minutes and I was up and running.
After something like this I always test everything. The only think that doesn't work is the Certbot renew dry run. It tells me it expects symlinks which, of course, are not present when copied from backup.
How do I recreate symlinks on Windows 10 so I can renew my certificate? I've got about a month to figure this out and get my certificate renewed for the next cycle.
I know this has been addressed for the Linux system, but I can't find anything for help on Windows.
This doesn't do anything at all. It produces an error: Expected c:\certbot\live\neteast.org\cert.pem to be a symlink
I am able to make symlinks with mklink, but that doesn't fix the problem of the certificate not renewing on dry run. It just says there is a configuration error, however the config files are the same in three different backups
I don't have a Windows installation handy to test this, but you can try looking at what the highest numbered file is in c:\certbot\archive\neteast.org\ and then try recreating the symlinks (making sure to substitute 99 in each command for the number you found):
Thanks. I tried this. The highest number is 18. It makes symlinks, but i am still getting a parsing error on the config file. The config file from back is the original
There was one additional error on the drive which I found and corrected. That fixed the symlink error, but the certificate will won't renew:
Processing C:\Certbot\renewal\neteast.org.conf
Cert not due for renewal, but simulating renewal for dry run
Plugins selected: Authenticator webroot, Installer None
Simulating renewal of an existing certificate for neteast.org
Performing the following challenges:
http-01 challenge for neteast.org
Waiting for verification...
←[31mChallenge failed for domain neteast.org←[0m
http-01 challenge for neteast.org
Cleaning up challenges
←[31mFailed to renew certificate neteast.org with error: Some challenges have failed.←[0m
Additional info: The dry run is successful when i use certonly and -d neteast.org This forces me to enter the challenge type and webroot manually. The config file, however has the same info
The restore failed to keep the symlinks [this you know].
Did the failed drive restore also affect the O/S?
If so, what O/S changes were made since the last backup?
[think about anything to do with inbound HTTP (IIS, firewall, etc.)]