Is it possible to create a certificate that supports two subdomains? (e.g. xxx.xxx.myapp.com)

Hey! Just wanted to double confirm, but I have a scenario where I need to allow domains that look like the following https://xyz.org.myapp.com. I tried to add a certificate in Fly for the following wildcard *.org.myapp.com and while the creation process didn’t fail, it gave me A and AAAA records that look like A org 123.456.XX and AAAA org fa0234:XXX (incorrect ips but just for example, the important bit is that it didn’t create mappings for *.org but instead just org in the Fly dashboard) instead of records that had an asterisk within them that I needed to add in Cloudflare DNS.

I’m guessing that double subdomains (if that’s what they are called) is not supported directly in Fly?

I created and deployed a Caddy proxy where I then create an A record for *.org that points at this Caddy Fly instance IP which contains a proxy for mapping these types of domains to my web application which works fine. But I’d prefer to just create a cert from my Web app in Fly to cover this domain mapping.

Thanks!

Sadly it is an SSL limitation and not possible.

You can use caddy’s on-demand tls (Automatic HTTPS — Caddy Documentation) but then you loose fly proxy

1 Like

yea that’s what I’m using to solve this problem. I already use it for custom domains for my customers on my site anyways. I I wish I could just define *.org.myapp.com as a cert in Fly. Bummer!

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.