-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
multi domain SAN SSL symlink directories ? #1260
Comments
Unfortunately, I'm not sure if we'll ever make the suggested change here. Doing so would require some major rearchitecture of the client and would take some time. Furthermore, it also is likely to make things more complicated for us. For instance, when the certificate is renewed, we'd have to make sure that the symlinks for every domain in the certificate are updated. This leads to more problems like properly cleaning up the mess if we crash before updating all symlinks. With that said, I can explain to you how the name is chosen as well as offer a potential solution to your problem. As you may already be aware, all domains that are input to a single run of If the above information does not help, another thing you do is to run LE once for each domain. While this is less efficient, the directory is created in |
thanks @bmw for the explanation and info i guess i can see about scripting my automation around the 1st domain listed in a multi-domain SAN ssl run via webroot authentication :) |
I'm confused how this would be a big issue in all but the biggest environment. This simple batch script will generate symlinks for all SANs and could be used to create a new "live" directory with symlinks. Note that you could even decide to implement it the exact same way (keeping the live dir and just creating another directory with symlinks for all domain names).
Disclaimer: I'm no bash scripting genius, so this can undoubtedly be done in a better way. |
Hi all I wrote a bash script Merry Christmas |
One problem with doing this by default is that letsencrypt currently supports multiple cert lineages that cover a given domain name (it isn't encouraged, but it is supported with Which isn't to say that this couldn't be done, it would just be quite a lot of reengineering work for a small payoff. Scripts like @h0l0gram's are a good workaround for folks who want this. |
I think in practice we've decided not to do this as a built-in feature. We can revisit it if we undertake a broad revision to certificate management in the future (and we could also include in our documentation a link to scripts that do this if someone wants to contribute them). |
I successfully created a multi domain SAN SSL with webroot authentication at https://community.centminmod.com/posts/20018/ for le8.http2ssl.xyz and le9.http2ssl.xyz domains.
However, the only resulting live directory created is for
/etc/letsencrypt/live/le8.http2ssl.xyz
. If folks are automating the process, they are likely to anchor a variable to domain name so I would be looking for both/etc/letsencrypt/live/le8.http2ssl.xyz
/etc/letsencrypt/live/le9.http2ssl.xyz
- however this is missingSuggestion
The suggestion is to create a symlink for other SAN domain name folders so
/etc/letsencrypt/live/le9.http2ssl.xyz
points to/etc/letsencrypt/live/le8.http2ssl.xyz
So for automation, folks can still anchor the variable for domain name to respective domain's vhost files
i.e.
So can do stuff like
The text was updated successfully, but these errors were encountered: