I might be phrasing this question wrong but does LetsEncrypt create a subdomain wildcard SSL certificate?
What I mean is, does the SSL created for subdomain1.example.com also get applied to any sub subdomains – subdomain2.subdomain1.example.com? If so, is there anyway to prevent this?
I’ve got a site on a subdomain on one server, and a sub subdomain that is pointed to a site on another server (different IP address). When visiting subdomain2.subdomain1.example.com, Chrome blocks the site because the SSL is invalid. If i add the sub subdomain to site_hosts, provisioning fails because that sub subdomain’s IP does not point to the same server.
LE supports “SAN” certificates where you need to specify every domain. There’s no wildcards.
So Trellis (as of current version) automatically adds every host you specify in the certificate which also means it needs to verify each one requiring a valid DNS record.
There’s no way around this right way as it’s generally a good thing to have HTTPS on every domain your site is on.
I’m using trellis for a single site on a subdomain – e.g. production.site.com – with LE SSL.
For the staging site, on a different server, I’m using the domain staging.production.site.com. When I visit http://staging.production.site.com, a redirect occurs to https://staging.production.site.com but as that URL isn’t setup with an SSL, the browser says it is unable to connect to the site. I can, however, go directly to WP Admin in Firefox at http://staging.production.site.com without any problems.
Have I misconfigured something or is this because of the SSL on production.site.com and is therefore expected? If so, is resolvable?
When I try to enable SSL on the staging site (staging.production.site.com) provisioning fails during the Test Acme Challenges task with the error ‘Make sure that a valid DNS record exists for…and that they point to this server’. I assumed that this was because production.site.com is on a different server to staging.production.site.com
Yeah, there is a DNS record for that domain and I’m able to access it fine as I mentioned.
Could it be due to my DNS setup? production.site.com is pointed to DigitalOcean’s nameservers while site.com is just using the nameservers of the original registrar.
On DigitalOcean, I’ve created the A record for staging.production.site.com and pointed it to another DigitalOcean server.