-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto not able to generate a cert with and without www. #31
Comments
The reason it's that way is that you may want to use one path for multiple domains. You can just use an array there: certificates:
- paths:
/var/example:
- example.org
- www.example.org Maybe we could also allow both directions, since we always know whether it's an absolute path or host name. |
Will add an example later. |
"Use an array there" solution solved my problem. One thing to note in the documentation is that YAML is very fussy about indenting. Have been using Online YAML Parser – http://yaml-online-parser.appspot.com/ – to identify alignment and not-enough-spaces issues. Thanks for doing all this. Greatly appreciated. |
@Lodesys As JSON is a strict subset of YAML, you should be able to use the JSON output there. |
I tweaked the documentation a bit, is it clear now? |
I also like the new auto option, but having problems generating certificates where multiple domains map to the same directory.
As a simple example, if I want a certificate for both www.example.org and example.org, I would include this in acme-client.yml config file:
I do get a single SSL certificate, but only the first domain – www.example.org – is included as both names are using the same directory.
One way around this would be to swap the path and domain, as the domain is always going to be unique within a single certificate.
Any suggestions?
The text was updated successfully, but these errors were encountered: