aloopkin / WinCertes

An ACMEv2 client for Windows
GNU General Public License v3.0
118 stars 28 forks source link

Specify either an HTTP or a DNS validation method. #12

Closed Adambean closed 5 years ago

Adambean commented 5 years ago

Describe the bug When trying to ask for a wildcard certificate the tool returns an error:

Specify either an HTTP or a DNS validation method.

It then shows the usage with all the arguments and options, but none of them specify whether HTTP or DNS should be used.

To Reproduce wincertes -d "*.example.com"

Desktop (please complete the following information):

aloopkin commented 5 years ago

If you want to issue a wildcard certificate from let's encrypt, you need to use DNS validation. Two plugins are available for the moment, see https://github.com/aloopkin/WinCertes/blob/master/Registry.md

Adambean commented 5 years ago

I did set the registry keys there already. (though I'm not fussed on a DNS writable password being stored there)

Did I miss an additional plugin download?

aloopkin commented 5 years ago

Don't forget to set DNSValidatorType (acme-dns or win-dns)

Adambean commented 5 years ago

How did I not see DNSValidatorType 🙄 Thanks!

Getting closer, though I accept this is a separate issue. At first I was getting a crash with this:

Failed to register and validate order with CA: User credentials cannot be used for local connections

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at WinCertes.Program.Main(String[] args)

I tried deleting the 2 authentication keys to see if it would just use the running user, because a password written in the registry is a terrible place to keep it. Looks like it got further, but still crashed:

Impossible to bind on port 80. A program is probably already listening on it.
Generated orders and validated challenges for domains: *.example.com

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at WinCertes.Program.Main(String[] args)
aloopkin commented 5 years ago

Can you please use the WinCertes Debug version (separate download), because i don't have enough logs there to help you.

Adambean commented 5 years ago

Sure, this is probably what you're after:

Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
   at WinCertes.Program.Main(String[] args) in C:\Users\Alcide Loopkin\Documents\Visual Studio 2017\Projects\WinCertes\WinCertes\Program.cs:line 263
aloopkin commented 5 years ago

Yes thanks! Fixed and released as 1.1.3

Adambean commented 5 years ago

Excellent, thank you. I can confirmed this resolved the issue for me. 3 certificates, one of which is wildcard, all issued and installed successfully.

Thanks again!