# Let’s Encrypt problem after upgrading to 1.9.0.beta3

**URL:** https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785
**Category:** Bug
**Created:** [2017 年7 月 7 日 04:46 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785 "2017-07-07T04:46:53Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### 作者： ![saluzi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saluzi/32/77568_2.png) [@saluzi](https://meta.discourse.org/u/saluzi)
#### 发布日期： [2017 年7 月 7 日 04:46 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785/1 "2017-07-07T04:46:53Z")

</div>

After upgrading to 1.9.0.beta3 , the SSL(Let’s Encrypt) rating has changed from A+ to A，the problem is HSTS.

Thanks very much

---

<div class="post-metadata">

### 作者： ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### 发布日期： [2017 年7 月 7 日 04:49 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785/2 "2017-07-07T04:49:41Z")

</div>

What is the problem with HSTS?

---

<div class="post-metadata">

### 作者： ![saluzi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saluzi/32/77568_2.png) [@saluzi](https://meta.discourse.org/u/saluzi)
#### 发布日期： [2017 年7 月 7 日 04:57 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785/3 "2017-07-07T04:57:20Z")

</div>

Using the [ssllabs.com](http://ssllabs.com) query, `HTTP Strict Transport Security (HSTS) with long duration deployed on this server` this sentence disappears . Thank you.

---

<div class="post-metadata">

### 作者： ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### 发布日期： [2017 年7 月 7 日 05:17 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785/4 "2017-07-07T05:17:06Z")

</div>

The [default HSTS configuration](https://github.com/discourse/discourse_docker/blob/master/templates/web.letsencrypt.ssl.template.yml#L92) is compliant with the SSL Labs recommendations. What site are you testing, and what changes have you made to the default `discourse_docker` templates?

---

<div class="post-metadata">

### 作者： ![saluzi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saluzi/32/77568_2.png) [@saluzi](https://meta.discourse.org/u/saluzi)
#### 发布日期： [2017 年7 月 7 日 05:26 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785/5 "2017-07-07T05:26:13Z")

</div>

I have nothing to change, completely default. My website is [https://www.xxxx.com/](https://www.xxxx.com/)

---

<div class="post-metadata">

### 作者： ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### 发布日期： [2017 年7 月 7 日 05:33 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785/6 "2017-07-07T05:33:04Z")

</div>

Your site is not sending an HSTS header at all. You’re also sending a header that was reverted from the default template nine days ago. Whatever you’re doing over there, it isn’t what we recommend.

---

<div class="post-metadata">

### 作者： ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### 发布日期： [2017 年7 月 7 日 05:56 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785/7 "2017-07-07T05:56:53Z")

</div>

Working fine on my self hosted by the book install of Discourse

 ![](https://global.discourse-cdn.com/meta/original/3X/2/2/222aff8371eebf5d2eeb93e406c839c2f5c8b9d2.PNG)

---

<div class="post-metadata">

### 作者： ![saluzi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/saluzi/32/77568_2.png) [@saluzi](https://meta.discourse.org/u/saluzi)
#### 发布日期： [2017 年7 月 13 日 10:26 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785/8 "2017-07-13T10:26:13Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/7/9/79a282618bc4cb7bf8703e6424f2e465a833d947.png)

 ![](https://global.discourse-cdn.com/meta/original/3X/6/f/6f5130eb886a4f5f2401d7954dbafdd45dfa788b.png)

---

<div class="post-metadata">

### 作者： ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### 发布日期： [2017 年7 月 13 日 17:55 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785/9 "2017-07-13T17:55:55Z")

</div>

Hmm, plausible, as I did a command line rebuild yesterday cc @falco.

---

<div class="post-metadata">

### 作者： ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### 发布日期： [2017 年7 月 13 日 22:04 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785/11 "2017-07-13T22:04:45Z")

</div>

Can confirm `discourse.codinghorror.com` is no longer sending a HSTS header _at all_:

```
$ wget -O /dev/null -S https://discourse.codinghorror.com -q
  HTTP/1.1 200 OK
  Server: nginx
  Date: Thu, 13 Jul 2017 22:04:15 GMT
  Content-Type: text/html; charset=utf-8
  Transfer-Encoding: chunked
  Connection: keep-alive
  Vary: Accept-Encoding
  X-Frame-Options: SAMEORIGIN
  X-XSS-Protection: 1; mode=block
  X-Content-Type-Options: nosniff
  X-Discourse-Route: list/latest
  Cache-Control: no-store, must-revalidate, no-cache, private
  X-Discourse-Cached: true
  X-Request-Id: f40d4ea9-375a-4a9e-b6e1-c7500ffa194f
  X-Runtime: 0.002585
  X-Discourse-TrackView: 1
  Referrer-Policy: no-referrer-when-downgrade

```

---

<div class="post-metadata">

### 作者： ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### 发布日期： [2017 年7 月 13 日 22:06 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785/12 "2017-07-13T22:06:03Z")

</div>

Yeah, I made a mistake when I added the `Referrer-Policy` header.

nginx add\_header lack of support for inheritance got me there.

Will fix soon.

---

<div class="post-metadata">

### 作者： ![mpalmer](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mpalmer/32/45740_2.png) [@mpalmer](https://meta.discourse.org/u/mpalmer)
#### 发布日期： [2017 年7 月 13 日 22:07 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785/13 "2017-07-13T22:07:12Z")

</div>

> [@Falco](#):
>
> nginx add\_header lack of support for inheritance got me there.

Awwwwwwww yeah… we’ve all been to _that_ circle of hell.

---

<div class="post-metadata">

### 作者： ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### 发布日期： [2017 年7 月 14 日 03:03 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785/14 "2017-07-14T03:03:25Z")

</div>

Rebuild a site to test this in action:

[https://github.com/discourse/discourse\_docker/commit/42504d319c1c7abe8501e8db4efcf1707aaaa240](https://github.com/discourse/discourse_docker/commit/42504d319c1c7abe8501e8db4efcf1707aaaa240)

---

<div class="post-metadata">

### 作者： ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### 发布日期： [2017 年7 月 14 日 09:01 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785/15 "2017-07-14T09:01:19Z")

</div>

It works!

 ![](https://global.discourse-cdn.com/meta/original/3X/1/8/1827e29f2b5a4168cf828fce0c8489988236544f.png)

Thanks for the report @saluzi this was a definite regression.

---

<div class="post-metadata">

### 作者： ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### 发布日期： [2017 年7 月 14 日 09:01 UTC](https://meta.discourse.org/t/let-s-encrypt-problem-after-upgrading-to-1-9-0-beta3/65785/16 "2017-07-14T09:01:24Z")

</div>


