# Eroscripts has no SSL?

**URL:** <https://discuss.eroscripts.com/t/eroscripts-has-no-ssl/197571>\
**Category:** General\
**Created:** [September 30, 2024, 6:12am UTC](https://discuss.eroscripts.com/t/eroscripts-has-no-ssl/197571 "2024-09-30T06:12:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![roa](https://discuss.eroscripts.com/user_avatar/discuss.eroscripts.com/roa/32/505960_2.png) [@roa](https://discuss.eroscripts.com/u/roa)\
**Post date:** [September 30, 2024, 6:12am UTC](https://discuss.eroscripts.com/t/eroscripts-has-no-ssl/197571/1 "2024-09-30T06:12:34Z")

</div>

Chrome says Eroscripts has no SSL and site may be unsecure? Think there was already a topic but can not find it.

---

<div class="post-metadata">

**Author:** ![Liquid](https://discuss.eroscripts.com/user_avatar/discuss.eroscripts.com/liquid/32/577941_2.png) [@Liquid](https://discuss.eroscripts.com/u/Liquid)\
**Post date:** [September 30, 2024, 6:16am UTC](https://discuss.eroscripts.com/t/eroscripts-has-no-ssl/197571/2 "2024-09-30T06:16:56Z")

</div>

![image](https://eroscripts-discourse.eroscripts.com/original/4X/7/a/e/7ae963bf526555cba5fa94d4aaf3ddb13172705d.png)

🤷‍♂️

---

<div class="post-metadata">

**Author:** ![roa](https://discuss.eroscripts.com/user_avatar/discuss.eroscripts.com/roa/32/505960_2.png) [@roa](https://discuss.eroscripts.com/u/roa)\
**Post date:** [September 30, 2024, 6:34am UTC](https://discuss.eroscripts.com/t/eroscripts-has-no-ssl/197571/3 "2024-09-30T06:34:00Z")

</div>

K I just get a message each time I connect. Says no HTTPS support.

---

<div class="post-metadata">

**Author:** ![Liquid](https://discuss.eroscripts.com/user_avatar/discuss.eroscripts.com/liquid/32/577941_2.png) [@Liquid](https://discuss.eroscripts.com/u/Liquid)\
**Post date:** [September 30, 2024, 9:42am UTC](https://discuss.eroscripts.com/t/eroscripts-has-no-ssl/197571/4 "2024-09-30T09:42:29Z")

</div>

Are you using a proxy or some old software that doesn’t support TLS 1.3 maybe?

**[SSL/TLS Client Test - TLS Fingerprinting - BrowserLeaks](https://browserleaks.com/tls)**

---

<div class="post-metadata">

**Author:** ![roa](https://discuss.eroscripts.com/user_avatar/discuss.eroscripts.com/roa/32/505960_2.png) [@roa](https://discuss.eroscripts.com/u/roa)\
**Post date:** [September 30, 2024, 10:38am UTC](https://discuss.eroscripts.com/t/eroscripts-has-no-ssl/197571/5 "2024-09-30T10:38:14Z")

</div>

nah looks good

![image](https://eroscripts-discourse.eroscripts.com/original/4X/e/e/2/ee21eb27d3e42031b14a6cdd3196aac916a3b4d6.png)

---

<div class="post-metadata">

**Author:** ![Mongoose](https://discuss.eroscripts.com/letter_avatar_proxy/v4/letter/m/6bbea6/32.png) [@Mongoose](https://discuss.eroscripts.com/u/Mongoose)\
**Post date:** [September 30, 2024, 9:00pm UTC](https://discuss.eroscripts.com/t/eroscripts-has-no-ssl/197571/6 "2024-09-30T21:00:09Z")

</div>

There’s an issue/bug with the site’s certificates and/or redirects – they’re not quite configured correctly, which is why you’re seeing an error. I’ve been getting it too but have been too lazy to report it, sorry!

The issue occurs if you type “[eroscripts.com](http://eroscripts.com)” into your browser’s address bar. This will (probably) try to take you to [https://eroscripts.com](https://eroscripts.com), but the certificate served with the root site isn’t correct (it’s for “[discuss.eroscripts.com](http://discuss.eroscripts.com)” not “[eroscripts.com](http://eroscripts.com)”) so you get a certificate mismatch error. This happens _before_ nginx redirects you to [discuss.eroscripts.com](http://discuss.eroscripts.com) so you get hit with the error first.

You can see it too if you try to test the server with SSLLabs:  
[https://www.ssllabs.com/ssltest/analyze.html?d=eroscripts.com&hideResults=on](https://www.ssllabs.com/ssltest/analyze.html?d=eroscripts.com&hideResults=on)

Result: you get a “Certificate name mismatch” error.

To keep everything as-it-is now, but fix the above issue, here’s how the redirects should work to cover all bases:

#non-secure root domain to secure discuss  
[http://eroscripts.com](http://eroscripts.com) → [https://discuss.eroscripts.com](https://discuss.eroscripts.com)

#non-secure discuss to secure discuss  
[http://discuss.eroscripts.com](http://discuss.eroscripts.com) → [https://discuss.eroscripts.com](https://discuss.eroscripts.com)

#secure root domain to secure discuss  
[https://eroscripts.com](https://eroscripts.com) → [https://discuss.eroscripts.com](https://discuss.eroscripts.com)

And here are the certificates required:  
`eroscripts.com` (root)  
`discuss.eroscripts.com`

Or a wildcard certificate:  
`*.eroscripts.com` (which will include the root)

Unfortunately the site only seems to have the current certificate (without root):  
`discuss.eroscripts.com`

I don’t know how this site’s set up – I’m guessing it’s a Docker instance of Discourse? – and that might well use Certbot to configure the LetsEncrypt SSL certificates.

So this is fixable in a few ways. It probably just needs a little tinkering with the nginx config’s redirects and maybe Docker to make sure Certbot generates the certs correctly. For example:

```auto
#NGINX example redirects

#non-secure root domain to secure discuss
server {
    listen 80;
    server_name eroscripts.com;

    access_log off; #don't bother logging the redirects

    # For certbot
    location /.well-known/acme-challenge/ {
        root /var/www/certbot;
        satisfy any;
        allow all;
    }

    return 301 https://discuss.eroscripts.com$request_uri;
}

#non-secure discuss to secure discuss
server {
    listen 80;
    server_name discuss.eroscripts.com;

    access_log off; #don't bother logging the redirects

    # For certbot
    location /.well-known/acme-challenge/ {
        root /var/www/certbot;
        satisfy any;
        allow all;
    }

    return 301 https://discuss.eroscripts.com$request_uri;
}

#secure root domain to secure discuss
server {
    listen 443 ssl;
    server_name eroscripts.com;

    ssl_certificate /etc/letsencrypt/live/eroscripts.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/eroscripts.com/privkey.pem;
    include /etc/letsencrypt/options-ssl-nginx.conf;
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

    # For certbot
    location /.well-known/acme-challenge/ {
        root /var/www/certbot;
        satisfy any;
        allow all;
    }
    return 301 https://discuss.eroscripts.com$request_uri;
}

# actual Discourse server stuff below
server {
    listen 443 ssl;
    server_name discuss.eroscripts.com;
....

```

And then you’d want to tell Certbot, through Docker, to generate your certs (fixing the paths first):

```auto
docker run -it --rm \
    -v /path/to/certificates:/etc/letsencrypt \
    -v /path/to/webroot:/var/www/certbot \
    certbot/certbot certonly \
    --webroot -w /var/www/certbot \
    -d eroscripts.com \
    -d discuss.eroscripts.com

```

I’m not 100% sure how Docker and Certbot play together though, so that may not be entirely right.

BUT! And this is a big but: if you’re going to all that effort, instead of doing all that, why not instead simplify everything and migrate the current “discuss. subdomain site” to plain ol’ [eroscripts.com](http://eroscripts.com)? Then add redirects for [discuss.eroscripts.com](http://discuss.eroscripts.com) → [eroscripts.com](http://eroscripts.com) so nothing gets broken and the transition is seamless? 🙂

I’ve never really got why the site runs on a subdomain when the root domain isn’t actually used for anything else. I guess the site was initially set up using a tutorial and the tutorial probably said “well obviously you already have a website, so to add a Discourse forum to your site you’ll want it on a subdomain, let’s use [discuss.example.com](http://discuss.example.com)” but that isn’t the case here.

So given that this whole entire excellent site _is_ [eroscripts.com](http://eroscripts.com) the “discuss.” part of it isn’t needed and it’d be simpler to just use [eroscripts.com](http://eroscripts.com). If that makes sense? OK I’ll shut up now.
