Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upNo certificate available #2895
Comments
This comment has been minimized.
This comment has been minimized.
I believe |
This comment has been minimized.
This comment has been minimized.
Actually
|
This comment has been minimized.
This comment has been minimized.
What do you mean "it works perfectly"? I thought you were getting |
This comment has been minimized.
This comment has been minimized.
@focux I think I made a dumb mistake when trying to censor my domain name, sorry. The error is complaining about another domain that is not |
This comment has been minimized.
This comment has been minimized.
Please update your issue with the complete and unredacted information then, please, as the issue template instructions state:
Similar for the logs:
Also fill out question 5, that will help relieve the ambiguity in your report. Right now this is not actionable or reproducible. |
This comment has been minimized.
This comment has been minimized.
Alright, I added more context to the issue. Sorry for the inconvenient. |
This comment has been minimized.
This comment has been minimized.
Can you please use real domain names? That is essential to solving the problem. |
This comment has been minimized.
This comment has been minimized.
Sure, just change back the names. |
This comment has been minimized.
This comment has been minimized.
Okay, thanks. We're finally making some progress.
|
This comment has been minimized.
This comment has been minimized.
What I want to do it's to generate SSL certificates on-demand for custom domains, without having to create a new site for each domain. I'm working on a multi-tenant product and I want to allow the customers to map his domain to his product URL. |
This comment has been minimized.
This comment has been minimized.
I thought that this block was doing what I said above, generate TLS certificates on the flight, using LE. |
This comment has been minimized.
This comment has been minimized.
According to the docs:
This is because the relevant RFC (I forget its number right now, but it's mentioned several times on the issues here previously) restricts wildcards in this manner as they pertain to TLS certificates, and this same string value is what Caddy uses in its TLS certificate logic. |
This comment has been minimized.
This comment has been minimized.
Thank you so much, now it works perfectly. I had two days trying to find what I had wrong in my conf and it was as simple as that. Thank you again! |
1. Which version of Caddy are you using (
caddy -version
)?Caddy v1.0.4
2. What are you trying to do?
I've been trying for two days to make the TLS on-demand to work and I haven't had any luck.
3. What is your Caddyfile?
4. How did you run Caddy (give the full command and describe the execution environment)?
It's a new DigitalOcean VPS that I bought to test and play with Caddy, I don't have anything else in front of it. Also, It's a fresh Caddy installation built from the source.
To run caddy, I use the following command:
caddy -log stdout
5. Please paste any relevant HTTP request(s) here.
6. What did you expect to see?
I expect first, to be asked what's my email, then to agree to the LE TOS and then to see the TLS succeed.
7. What did you see instead (give full error messages and/or log)?
8. Why is this a bug, and how do you think this should be fixed?
So, basically this block works perfect, if I go to
something.thridea.com
orwww.thridea.com
it works.What doesn't work is this block, that's why I think it's related to TLS on-demand:
When I try to use e.g.
bookme.rocks
, is when I get the error I showed above.9. What are you doing to work around the problem in the meantime?
I don't really know what I can do as a workaround.
10. Please link to any related issues, pull requests, and/or discussion.
Related to #2773