SSL is one of those launch tasks that looks simple until it fails in production. This guide gives you a reusable checklist for setting up HTTPS on a root domain and subdomains, choosing the right certificate type, handling DNS and validation, renewing certificates safely, and fixing common issues such as mixed content and hostname mismatches. If you manage domains, DNS management, or cloud hosting, you can use this as a practical reference before every launch, migration, or certificate renewal.
Overview
At a basic level, SSL certificate setup is the process of proving control of a domain and installing a certificate so browsers can serve your site over HTTPS. In day-to-day operations, though, the work touches several moving parts: domain registration, DNS records, your web server or load balancer, application redirects, and renewals.
A useful way to think about HTTPS setup is to separate it into four decisions:
- Which hostnames need coverage? For example:
example.com,www.example.com,app.example.com, or multiple client subdomains. - Which certificate type fits that coverage? Single-domain, wildcard, or multi-domain certificates all solve different problems.
- How will validation happen? Most setups use either HTTP validation or DNS validation.
- Where will the certificate terminate? On the web server, reverse proxy, ingress controller, CDN, or cloud load balancer.
If you skip any of those decisions, certificate setup becomes harder than it needs to be. That is especially true when a site uses managed DNS, a separate registrar, a cloud VPS hosting stack, and external email. Before touching records or server settings, map the request path from browser to origin.
Here is the short version of a sound workflow:
- List every hostname that must load over HTTPS.
- Confirm DNS records point to the intended platform.
- Choose the certificate scope and validation method.
- Issue the certificate.
- Install it where traffic is terminated.
- Enable redirects from HTTP to HTTPS.
- Test chain validity, hostname coverage, renewal, and mixed content.
If you are still preparing infrastructure, it helps to review how to point a domain to a server or hosting provider and DNS records explained before starting certificate validation.
Checklist by scenario
Use the scenario below that matches your setup. The goal is not to memorize every option, but to avoid the most common SSL setup errors before launch.
Scenario 1: Single website on a root domain and www
This is the standard case for a business site or product homepage.
- Decide which hostname will be canonical:
example.comorwww.example.com. - Make sure both hostnames resolve correctly in DNS.
- Request a certificate that covers both names.
- Install the certificate on the server, proxy, or hosting platform serving the site.
- Redirect HTTP to HTTPS for both hostnames.
- Redirect the non-canonical hostname to the canonical one.
- Test both variants in a browser and with a command-line check.
This setup is usually the cleanest path when you want a straightforward install SSL for domain workflow without extra subdomain complexity.
Scenario 2: One subdomain only
If your app runs at app.example.com and the main site is elsewhere, treat the subdomain as its own launch unit.
- Confirm the
A,AAAA, orCNAMErecord for the subdomain is correct. - Issue a certificate specifically for that subdomain, or use a broader certificate if you already manage one.
- Install the certificate on the exact service handling that hostname.
- Verify redirects and security headers do not accidentally force traffic to another hostname.
- Check that cookies, CORS policies, and callback URLs still work over HTTPS.
This is the most common ssl for subdomain pattern for dashboards, APIs, staging apps, and customer portals.
Scenario 3: Many subdomains under one domain
For setups like app.example.com, api.example.com, docs.example.com, and status.example.com, you usually choose between separate certificates and a wildcard certificate.
- Use separate certificates if services are isolated and managed independently.
- Consider a wildcard certificate if many first-level subdomains are handled in a consistent environment.
- Plan for DNS-based validation if wildcard issuance requires it.
- Document where the private key is stored and who can access it.
- Confirm whether you also need the root domain covered, since wildcard coverage often does not automatically include it.
Wildcard coverage can simplify operations, but it also increases the importance of key management and renewal discipline.
Scenario 4: Cloud load balancer, CDN, or platform-managed HTTPS
Many cloud hosting and developer hosting platforms can provision certificates automatically.
- Check whether HTTPS terminates at the edge, at the load balancer, or on the origin server.
- Verify the platform can validate the hostname through your current DNS setup.
- Make sure DNS points to the platform exactly as required.
- Confirm whether origin-to-edge traffic should also be encrypted.
- Review how renewals are handled and whether any action is required from you.
This is often the easiest https setup guide path for teams that want less manual certificate handling, but it still depends on correct DNS management.
Scenario 5: Reverse proxy or self-managed VPS
If you run Nginx, Apache, Caddy, Traefik, or another proxy on a VPS hosting environment, your checklist should include both issuance and service configuration.
- Open ports 80 and 443 where needed.
- Make sure the hostname resolves to the correct public IP.
- Install the ACME client or use native automation from the proxy.
- Issue the certificate using HTTP or DNS validation.
- Attach the certificate to the correct virtual host or server block.
- Reload the service safely after installation.
- Test renewal before assuming automation works.
For teams deploying apps directly on servers, this is the most common letsencrypt domain setup pattern.
Scenario 6: Migrating a site without breaking HTTPS
Moves between hosting platforms, DNS providers, or registrars can interrupt certificate issuance and renewals if done out of order.
- Inventory all existing certificates and covered hostnames.
- Note current validation dependencies, especially DNS-based TXT records.
- Lower DNS TTL in advance if appropriate for the move.
- Provision the new environment before cutting traffic.
- Issue or import certificates on the destination side.
- Switch DNS only after the new endpoint is ready for HTTPS.
- Keep the old environment available until the new certificate is confirmed working.
Related reading: Nameserver Change Guide: How to Switch DNS Providers Safely and DNS Propagation Checker Guide.
What to double-check
Once the certificate appears installed, the real work is verification. This is where many launches fail quietly: the homepage works, but a subdomain, redirect path, API callback, or asset URL does not.
1. Hostname coverage
Check the exact hostnames in the certificate. A certificate for www.example.com does not automatically protect example.com. A wildcard for *.example.com may not cover the apex domain either. Match your certificate scope to real traffic, not assumptions.
2. Validation dependencies
If you use DNS validation, make sure TXT records are placed in the correct DNS zone and are not being overridden by another provider. This matters when domain registration, managed DNS, and hosting live in different accounts.
3. Full chain installation
A certificate can look fine in one browser and still fail elsewhere if intermediates are missing. Verify the server presents the full certificate chain expected by clients.
4. Redirect logic
Test these paths explicitly:
http://example.comto HTTPShttp://www.example.comto HTTPS- Non-canonical hostname to canonical hostname
- Deep URLs, not just the homepage
A redirect loop usually points to conflicting logic between your app, proxy, CDN, or load balancer.
5. Mixed content
Mixed content happens when an HTTPS page still loads scripts, styles, images, fonts, or API requests over HTTP. Modern browsers may block these requests. Audit templates, CMS settings, environment variables, and hardcoded asset URLs.
6. Renewal automation
A valid certificate today is not enough. Confirm:
- How renewal is triggered
- Where logs are written
- Whether post-renewal reloads are required
- Who receives failure alerts
For a broader pre-launch process, see the Website Launch Checklist.
7. Email and other DNS records
SSL work often happens at the same time as domain changes. Double-check that MX, SPF, DKIM, and other TXT records are untouched unless you intended to update them. If you are launching a new website on an existing domain, review how to launch a website on a new domain without breaking email.
Common mistakes
The fastest way to improve SSL setup reliability is to learn the failure patterns that repeat across small business sites, developer staging environments, and cloud server deployments.
Requesting the wrong certificate
Teams often issue a certificate for one hostname and discover later that users visit another. Write down every public entry point before you start. That includes www, app subdomains, API endpoints, and any customer-facing aliases.
Changing DNS too early
If DNS moves before the destination service is ready to answer validation or serve the new certificate, users may see warnings. Build the target first, then cut traffic.
Forgetting where HTTPS terminates
In modern cloud hosting, the certificate may belong on a CDN or load balancer rather than the origin server. Installing it in the wrong place wastes time and causes confusing tests.
Assuming automation means no monitoring
Auto-renewal reduces manual work, but it still needs visibility. DNS changes, firewall rules, expired API credentials, or deleted TXT records can break renewals later.
Ignoring staging and preview domains
Internal environments often become semi-public over time. If users, clients, or QA staff access them in a browser, they should have valid HTTPS too. Plan certificates for those hostnames or keep the environments access-restricted.
Leaving internal links and assets on HTTP
After SSL certificate setup, scan for hardcoded HTTP URLs in templates, CMS fields, scripts, image paths, and environment configs. Mixed content is one of the most persistent post-launch issues because it survives a successful certificate install.
Not documenting ownership
Certificates fail more often in organizations where no one knows which account issued them, which ACME client handles renewal, or where DNS validation records live. A simple runbook prevents unnecessary outages.
When to revisit
SSL setup is not a one-time task. Revisit it whenever the underlying inputs change, especially before launches, migrations, or seasonal planning cycles. The practical habit is to treat HTTPS like a repeatable operations checklist rather than a box you checked once.
Review your SSL configuration when any of the following happens:
- You add or remove subdomains
- You move to a new cloud hosting provider, load balancer, or CDN
- You change DNS providers or nameservers
- You migrate from shared hosting to VPS hosting or another self-managed stack
- You update redirect rules, canonical hostnames, or reverse proxy configuration
- You separate services across multiple environments such as production, staging, and preview
- You rotate keys or tighten access controls
- You have a renewal failure or browser warning
Use this action-oriented mini-review before each change:
- List all hostnames currently in use.
- Match each hostname to the service that terminates HTTPS.
- Confirm DNS records still point where expected.
- Check certificate coverage and expiration windows.
- Test one renewal path or validate the automation logs.
- Load key pages and assets to catch mixed content.
- Verify redirects and canonical behavior.
- Update internal documentation with account, tool, and ownership details.
If your stack is still evolving, it may also help to compare hosting models before redesigning certificate handling: Cloud Hosting vs Shared Hosting vs VPS, How Much Cloud Hosting Do You Need?, and Best VPS Hosting for Developers.
The simplest long-term rule is this: every time you change domain routing, hosting, or public hostnames, revisit HTTPS intentionally. That habit prevents rushed fixes and makes SSL for domains and subdomains part of normal site operations instead of an emergency task.