Getting AcmeServerDirectory
Enter an email address (not public, used for renewal fail notices): jonas@domain.local
Calling Register Unexpected error ACME Server Returned: {
** “type”: “urn:acme:error:invalidEmail”,**
** “detail”: “DNS problem: NXDOMAIN looking up MX for domain.local”,**
** “status”: 400**
}
Press enter to continue.
The domain in your email address needs a MX record, in other words it has to be able to receive email. You can verify this using dig domain.local mx or with nslookup.
The email address is optional, so leaving it empty would work as well. You won't be receiving any expiration notifications that way, meaning you'll need to monitor the renewal process yourself.
I don’t believe letsencrypt-win-simple has an option similar to --register-unsafely-without-email. Looking at the relevant code, the way to do it seems to be to simply leave the field empty when asked for it (i.e. press enter when the prompt appears).
The link to the code was just a reference to show how things are implemented. There’s nothing to use there.
It’s possible that letsencrypt-win-simple has stored the email address you entered the first time and keeps reusing it if you leave the prompt empty. I’m not familiar enough with that client to say for sure, nor do I know where it would store that information or how whether it can easily be deleted.
Perhaps an alternative would be to simply provide some other (working) email address. It doesn’t have to match the domain on the certificate; something like gmail would work.
What kind of error do you get with the gmail address? Do you still get the NXDOMAIN error with the domain of your original email address? In that case, there’s probably no way around figuring out how to edit the email address that letsencrypt-win-simple might have stored somewhere in a configuration file. I’m afraid I don’t know enough about this client to figure that one out. If you can’t find anything relevant in the documentation, I would suggest opening an issue on their GitHub to ask for assistance.