Blossom Wildcard Domains
Let Blossom issue and renew wildcard Domain certificates with a supported DNS provider
Wildcard Domains serve multiple subdomains such as *.example.com through one
Blossom Environment. Blossom handles TLS issuance and renewal through a
supported DNS provider.
Note: If you’re using a CDN like Cloudflare, CloudFront, or Akamai, you’ll want to follow our CDN Wildcard Domains guide instead, as the SSL termination happens at the CDN level.
Overview
A wildcard domain certificate covers your main domain and all its subdomains. For example, a certificate for *.example.com will secure:
- test.example.com
- staging.example.com
- client1.example.com
- any-subdomain.example.com
Requirements
To use wildcard domains, you need:
- A DNS provider configured in Blossom that supports DNS validation
- Administrative access to manage DNS records for your domain
Supported DNS Providers
Blossom supports the following DNS providers for wildcard domains:
- Amazon Route 53
- Cloudflare
- DigitalOcean
- Hetzner
During certificate validation, Blossom briefly adds the required TXT record, validates it, and removes it. The record may disappear before it is visible in the DNS provider’s dashboard.
Configuration Steps
-
First, ensure you have a DNS provider configured in Blossom:
- Navigate to DNS Providers section
- Click “Add New Provider”
- Select your provider and enter the required credentials
Or use the CLI:
blossom dns_provider:types blossom dns_provider:initIt writes dns_provider.yml:
dns_provider: name: production-cloudflare provider_type: cloudflare credentials: api_token: ${CLOUDFLARE_API_TOKEN} # For Amazon Route 53, use an existing AWS cloud provider instead: # provider_type: route53 # cloud_provider_id: cloud_provider-100blossom dns_provider:create --data dns_provider.yml blossom dns_provider:list -
Configure your wildcard domain:
- Go to your app’s Domains section
- Click “Add New Domain”
- Enter your wildcard domain (e.g.,
*.example.com) - Select “HTTPS Wildcard” as the SSL mode
- Choose your DNS provider from the dropdown
Or create it with the CLI:
blossom domain:create --data '{"domain":{"environment_id":"environment-100","dns_name":"*.example.com","dns_provider_id":"dns_provider-100"}}' -
After creation, Blossom will:
- Automatically configure DNS validation
- Obtain a wildcard SSL certificate through Let’s Encrypt
- Keep the certificate renewed
DNS Validation
Wildcard certificates require DNS validation (as opposed to HTTP validation) because they secure multiple subdomains. Blossom automatically handles this by:
- Creating the required DNS validation records through your DNS provider
- Verifying the records are properly set
- Completing the certificate issuance process
Important Notes
- Wildcard certificates only cover one level of subdomains. For example,
*.example.comwill covermysite.example.combut nottest.mysite.example.com - The DNS provider must be properly configured with the necessary permissions for automated DNS validation
- Certificate renewal is handled automatically by Blossom
Troubleshooting
If you encounter issues with wildcard domain setup:
- Verify your DNS provider credentials are correct and have the necessary permissions
- Check that your domain’s nameservers are properly configured to use your selected DNS provider
- Allow up to 15 minutes for DNS changes to propagate and the certificate to be issued
- Inspect the Domain’s TLS state and Activity for an actionable validation error
Alternative Approaches
If you’re using a CDN to handle SSL termination for your wildcard domains, see our guide on CDN Wildcard Domains.