Certificate for subdomain

Hello,

I have a domain that has a certificate let’s encrypt.
I made a redirection on my web host concerning my subdomain.

It points to: https://mydomain.com/mysecondesite/

So: web.mydomain.com points to the address above.
Normally, it should have the SSL certificate.

When I access web.mydomain.com, the certificate is not valid:

There are issues with the site’s certificate chain (net :: ERR_CERT_COMMON_NAME_INVALID).

How to make this subdomain use the primary domain certificate?

Thanks your in advance !

Hi @Mathie,

You can't. They are considered completely separate entities by the browser and CA. You should get a new certificate covering the subdomain (or covering both names) using the same method that you used to get your original certificate.

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