oocx / acme.net

A .net implementation of ACME (Automatic Certificate Management Environment)
MIT License
89 stars 19 forks source link

Support for Alternative names #5

Open Bobris opened 8 years ago

Bobris commented 8 years ago

Is it somehow possible to encode alternative domain names, like to have identical certificate for: www.example.com and example.com?

ozgurerdogan commented 8 years ago

Any news on this? Can we currently only create cert. for one hostname with not www san support?

ArsenShnurkov commented 7 years ago

as I understood, there is bug in the code.

default value of separator is '\0':

https://github.com/gsscoder/commandline/blob/master/src/CommandLine/OptionAttribute.cs#L27 sealed class OptionAttribute : BaseAttribute separator = '\0';

and it is not set/changed at invocation: https://github.com/oocx/acme.net/blob/master/src/Oocx.ACME.Console/Options.cs#L14 [Option('d', "domain", HelpText = "The names of the domains for which you want to request a certificate.", Required = true)]

should be something like , Separator=':' this allows to give -d example.com:www.example.com as command line argument. But it's also possible just to give -d example.com www.example.com and this works now. I don't dig why.