# SSL received a record that exceeded the maximum permissible length

**URL:** <https://meta.discourse.org/t/ssl-received-a-record-that-exceeded-the-maximum-permissible-length/93392>\
**Category:** Self-hosting\
**Created:** [29 ביולי,‏ 2018,‏ 6:02am UTC](https://meta.discourse.org/t/ssl-received-a-record-that-exceeded-the-maximum-permissible-length/93392 "2018-07-29T06:02:03Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**Post date:** [29 ביולי,‏ 2018,‏ 2:07pm UTC](https://meta.discourse.org/t/ssl-received-a-record-that-exceeded-the-maximum-permissible-length/93392/12 "2018-07-29T14:07:44Z")

</div>

> [@Pad\_Pors](#):
>
> this error only happens only to some firefox sessions, and not all of them. is that ok?

I can think of a lot of reasons why that might be the case! primary one being that your SSL is being cached with the cloudflare responses.

> [@Pad\_Pors](#):
>
> is there any howto guide for using https alongside cloudflare?

There isn’t a guide to use cloudflare with SSL on your server because that isn’t feasible at all. for SSL thing to happen (in case of letsencrypt anyway) your server needs to say hello on port 80 & 443 which in the case of cloudflare is proxied by their servers so the ACME server doesn’t gets the desired response and SSL creation/renewal fails.  
for Site to work in SSL, easiest way is to use the cloudflare template on your server and use their certificate in flexible mode. You can as well remove your nginx server installed on your server and simply open port 80 in for docker. if you need additional security, you can set up firewall to disallow connections from anything other than cloudflare IPs to your server.

> [@Pad\_Pors](#):
>
> won’t this cause any further error?

hmmm … I’m not sure. I’ve never had a good time with cloudflare and discourse. There had been a lot of issues in setting it up and even after I managed to get it up & running, most of the things failed on me because there are a lot of tools in cloudflare which do very aggressive caching and discourse doesn’t likes it.

final choice still would be yours if you have to have cloudflare then use the method I suggested. this is the “_most likely would work_” type of situation but I won’t take any responsibility if cloudflare decides to be funny and doesn’t lets it work.

> [@Pad\_Pors](#):
>
> **update** : here is the information of the certificate when the site loads correctly:
> 
> [![image](https://global.discourse-cdn.com/meta/original/3X/5/f/5f3de796c08ed27a4a4cfaaa67fd2971e37d0c9f.png)  
> image.png425x520 44.6 KB  
> ](https://global.discourse-cdn.com/meta/original/3X/4/9/49e8154f08d5541cf82c0ac3674aeb822649169b.png)

that speaks for itself! this is the cloudflare proxy ssl not the one being served from your server.

---

_[View the full topic](https://meta.discourse.org/t/ssl-received-a-record-that-exceeded-the-maximum-permissible-length/93392)._
