Domain showing wrong certificate

Please fill out the fields below so we can help you better. Note: you must provide your domain name to get help. Domain names for issued certificates are all made public in Certificate Transparency logs (e.g., so withholding your domain name here does not increase secrecy, but only makes it harder for us to provide help.

My domain is:

I ran this command:create certficate

It produced this output:

My web server is (include version):IIs 8

The operating system my web server runs on is (include version):Windows server r12

My hosting provider, if applicable, is:

I can login to a root shell on my machine (yes or no, or I don’t know):yes

I’m using a control panel to manage my site (no, or provide the name and version of the control panel):no

The version of my client is (e.g. output of certbot --version or certbot-auto --version if you’re using Certbot):

The certificate for the above domain shows another domain ion the same server. Not sure how this happened, but I need to remove this link and generate it’s own certificate.

Many thanks

Hi @pzh20

is this your domain? Or is it a typo?

There is no A- or AAAA-record defined ( ):

Host T IP-Address is auth. ∑ Queries ∑ Timeout Name Error yes 1 0 Name Error yes 1 0

So it's impossible to check your domain and see the certificate., sorry.

There is the wrong certificate installed ( ):
expires in 68 days - 1 entry

So both connections are insecure.

How did you create that certificate?

Open your IIS-Managementconsole, then check your bindings.

Perhaps share a screenshot.

IIS8 supports SNI, so you can create different websites with different certificates. And one website with different bindings, different domain names and different certificates.

I created the certificates running the C:\LetsEncrypt\letsencrypt.exe command. I think I created the dwcp certificate then the jdcounselling site one after another.

Thanks. That looks ok.

Show one detail of the second domain, https binding. Perhaps you didn’t checked the SNI-box. That’s required if you have more then one certificate.

SNI is ticked on both domains on the IIS bindings.


Then you have selected the wrong certificate.

I use one productive website with a lot of different bindings, different certificates and different domain names (own and customer-domains). Plus test-websites.


Shall I remove it from the Server Certificates list and then recreate a certificate?


I tried removing the certificate and adding a new one, but it ends up exactly the same. Maybe I have to remove the certificates for both domains and re generating them.


Share a screenshot of your binding-details.

There must be something wrong.

Seems ok, but still picking up the wrong certificate.


So it turns out that all sites on my server are picking up the same certificate. Somehow it is like a default.


I don't undertstand it.

Is the certificate correct? Check "View".

You have two websites, I have one website with a lot of different host names, a wildcard (* without a host name (that's the standard port 443) and a lot of different domain names (own productive domains, domains of customers).

Wait: Somewhere I've read it is possible to remove the SNI-support in Windows 2012. Perhaps you have disabled SNI-support.

Then all https connections would use the same certificate. But you must search to find that.

PS: Check

As you can see from the screenshot, SNI is enabled (it’s the default on IIS8)

Here’s the View

Oh: Is this the problem?

Your first domain uses explicit ip addresses.

Your other domain has “All Unassigned”.

I’m using no ip address, never had problems.

Perhaps that blocks. Remove the ip addresses from the binding definitions of your first domain, so every ip address is used.

I have changed them, but it makes no difference. Maybe I need to remove all certificates and re add them.
I cannot see how one domain picks up another’s certificate via the LetsEncrypt script.


I’m really stuck with this and cannot see a way forward. Does anyone know if I can just start afresh with all domains that need certificates?


OK, I have it picking up the right certificate now, but it still says Not Secure when I go to the site via google.