Unable to access the site via HTTPS


#1

My domain is: jittapan.app

My web server is (include version): nginx 1.14.0 (Ubuntu)

The operating system my web server runs on is (include version): Ubuntu 18.04.2

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): certbot 0.31.0

I’m using configurations provided here for my web server.

The command

echo | openssl s_client -connect jittapan.app:443 -servername jittapan.app 2>/dev/null | awk '/Certificate chain/,/---/'

Outputs

Certificate chain
 0 s:CN = jittapan.app
   i:C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
 1 s:C = US, O = Let's Encrypt, CN = Let's Encrypt Authority X3
   i:O = Digital Signature Trust Co., CN = DST Root CA X3

Chrome shows a certificate issued to “Default Company Ltd” when I viewed the certificate.
I’m not sure what I did wrong here.
Thank you for your help.


#2

Well, my OpenSSL command, not unlike yours, actually also gets the “Default Company” certificate!

The IP address of your domain name is 103.253.73.46, correct? Did you run your OpenSSL command from “inside” some kind of local network behind a router or firewall? Could it be some portmaps are not correct? Does nginx specifically listen to certain IP’s for its virtual hosts, which might differ?


#3

Ah yes, now I get the default company certificate when running from my machine.
I only have virtual hosts that you can see in the nginxconfig.io link.