Skip to content
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

Closed
Lodesys opened this issue Jun 12, 2016 · 5 comments
Closed

Auto not able to generate a cert with and without www. #31

Lodesys opened this issue Jun 12, 2016 · 5 comments

Comments

@Lodesys
Copy link

Lodesys commented Jun 12, 2016

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:

certificates:
    - paths:
        /www/example: www.example.org
        /www/example: example.org

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.

certificates:
    - paths:
        www.example.org: /www/example
        example.org: /www/example

Any suggestions?

@kelunik
Copy link
Owner

kelunik commented Jun 12, 2016

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.

@kelunik
Copy link
Owner

kelunik commented Jun 12, 2016

Will add an example later.

@Lodesys
Copy link
Author

Lodesys commented Jun 12, 2016

"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.

@kelunik
Copy link
Owner

kelunik commented Jun 12, 2016

@Lodesys As JSON is a strict subset of YAML, you should be able to use the JSON output there.

@kelunik
Copy link
Owner

kelunik commented Jun 20, 2016

I tweaked the documentation a bit, is it clear now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants