Extend SSL certificate to new branch sub-domain

Netlify site name: neon-piroshki-d51e08.netlify.app

I followed the steps in [Support Guide] How to use Netlify’s branch deploy feature without Netlify DNS for staging.lumilumi.vision

Can I get the SSL certificate extended to the new sub-domain? Thanks.

Hi, this is done. Thanks for reaching out.

Hi, when I go to https://staging.lumilumi.vision/, it still says that it is not secure.

Aha, it happens that I’m familiar with this issue. You probably added a new URL later, you just need to generate a new SSL/TLS certificate for everything.

Go to you site overview, select the website, domain management then scroll down to HTTPS in that page.

Renew certificate, make a cup of coffee, and voila, everything should be working.

Strange, I refreshed the certificate but https://staging.lumilumi.vision/ are https://www.staging.lumilumi.vision/ still insecure.

https://staging.www.lumilumi.vision/ is perfectly fine though.

My domains listed in the certificate are “lumilumi.vision, staging.www.lumilumi.vision, www.lumilumi.vision” Does that have anything to do with it?

Based on what you said in:

I’d suggest the certificate was incorrectly issued @SamO

It is not common practice to have this domain configured only staging.lumilumi.vision

Hi @ajz003,

I believe the issue is that the primary domain is www.lumilumi.vision on the site. You’ll want to make the bare domain (lumilumi.vision) the primary domain if you want the subdomain to be
staging.lumilumi.vision instead of staging.www.lumilumi.vision. After making the change, please let us know.

This is mentioned in the linked Support Guide here:

  1. the subdomain will be under the primary custom domain

This second point means that if your primary custom domain is www.example.com then the subdomain will be branch-name.www.example.com and not branch-name.example.com.

Here is an example scenario:

  • the custom domain is www.example.com
  • the branch name is branch-name
  • the branch should be served at https://branch-name.www.example.com/
  • the TTL value (time to live value - more below) will be 3600 seconds which is one hour
  • the sub-domain at Netlify is happy-scientist-123456 (meaning the Netlify URL for the master branch is https://happy-scientist-123456.netlify.app/)

With the values above defined for this example, the DNS record you create would look like so:

branch-name.www 3600 IN CNAME branch-name--happy-scientist-123456.netlify.app.

The format above is required and no other naming conventions will work. The key points for the DNS record are:

  • There should be two dashes between branch-name and happy-scientist-123456.
  • The record should be the type CNAME.
  • The branch name must match the sub-domain you want exactly. If your branch is called staging your sub-domain cannot be stage.www.example.com. It must be staging.www.example.com.
1 Like