sub handle_verification_dns is somehow not getting called from le64.exe
Closed this issue · 2 comments
I declared --handle-with C:\\DNS_wildcard.pm
in the way I call for le64.exe
.
The sub handle_challenge_dns
in the C:\\DNS_wildcard.pm
works well, but somehow I am not getting the handle_verification_dns
sub to run. I need to update a file if the verification is successful. How would I do that?
I currently have a sub inside handle_verification_dns
under if ($results->{valid}) {
but as mentioned above, it is not getting executed.
It looks like sub complete {
is running, but entering my sub in there will only trigger a run on my sub if there is a validation that ran. I am currently getting:
Received domain certificate, no validation required at this time.
Thank you for the help.
Since verification step and completion step could technically be handled differently and by different plugins, to catch the completion you need to use --complete-with
parameter as outlined here - https://github.com/do-know/Crypt-LE#plugins. So, in essence, your command line would have both in this case (since subs for both are defined in DNS_wildcard.pm already):
--handle-with C:\\DNS_wildcard.pm --complete-with C:\\DNS_wildcard.pm
I hope that helps.
Thank you for that.
I did find another way around it, by checking if the certificate file date has changed.