# 'Could not create SSL/TLS secure channel error' when connecting to Discourse API from Windows Server

**URL:** https://meta.discourse.org/t/could-not-create-ssl-tls-secure-channel-error-when-connecting-to-discourse-api-from-windows-server/128573
**Category:** Support
**Created:** [September 14, 2019, 1:23pm UTC](https://meta.discourse.org/t/could-not-create-ssl-tls-secure-channel-error-when-connecting-to-discourse-api-from-windows-server/128573 "2019-09-14T13:23:30Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [September 14, 2019, 1:23pm UTC](https://meta.discourse.org/t/could-not-create-ssl-tls-secure-channel-error-when-connecting-to-discourse-api-from-windows-server/128573/1 "2019-09-14T13:23:31Z")

</div>

Hi everyone,

Recently updated to 2.4.0.beta4 ([1576b07a10](https://github.com/discourse/discourse/compare/1576b07a1019674cc0d9c88f72a0ab3e64af9911...tests-passed)) and since the update one of our external applications is no longer able to authenticate with the Discourse API.

The application throws a simple error of

> `The request was aborted: Could not create SSL/TLS secure channel.`

The application is using TLS1.2, is this no longer supported?

Any thoughts on recent changes which might save me several hours of debugging the other application?

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [September 14, 2019, 1:33pm UTC](https://meta.discourse.org/t/could-not-create-ssl-tls-secure-channel-error-when-connecting-to-discourse-api-from-windows-server/128573/2 "2019-09-14T13:33:32Z")

</div>

1.2 and 1.3 versions of TLS are enabled as you can test for yourself using [SSL Server Test (Powered by Qualys SSL Labs)](https://www.ssllabs.com/ssltest/)

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [September 14, 2019, 1:40pm UTC](https://meta.discourse.org/t/could-not-create-ssl-tls-secure-channel-error-when-connecting-to-discourse-api-from-windows-server/128573/3 "2019-09-14T13:40:04Z")

</div>

Thanks @Falco - confirmed it’s still there:

 ![08](https://global.discourse-cdn.com/meta/original/3X/e/c/ece3273a750fe233e1cf87294ebd5fc92a948018.png)

Right, I’ll get debugging then, something else must have changed on our Discourse which is causing our external applications to fall over as it’s occurring on both our dev and prod environments.

I’ll see what I can work out 👍🏻

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [September 14, 2019, 3:17pm UTC](https://meta.discourse.org/t/could-not-create-ssl-tls-secure-channel-error-when-connecting-to-discourse-api-from-windows-server/128573/4 "2019-09-14T15:17:17Z")

</div>

Turns out we had a _very_ similar issue as described here:

> [@SSL/TLS errors on very old browsers connecting to Discourse](https://meta.discourse.org/t/ssl-tls-errors-on-very-old-browsers-connecting-to-discourse/127474/4):
>
> For those users on old Windows versions, you probably need to enable the CBC ciphers: The very next thing you should do is send those users to to get information about what their browser supports. The easiest way to share their result is probably having them print to a PDF and send it to you.

Our external legacy application that connects to our Discourse API is running on an old Windows 2008 R2 server.

For whatever reason, the Windows server and the Discourse server were unable to agree on a cipher suite after the recent Discourse updates were installed earlier this week. Whether some ciphers were altered during the update, or if this issue coincided with a LetsEncrypt cert renewal at the same time, I don’t know 🤷‍♂️

Anyway, rather than edit our Discourse, I was able to add a couple of cipher suites to the Windows server that they both agreed on, again with the help of the SSL Labs link that @Falco shared above 🙂

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [September 14, 2019, 4:09pm UTC](https://meta.discourse.org/t/could-not-create-ssl-tls-secure-channel-error-when-connecting-to-discourse-api-from-windows-server/128573/5 "2019-09-14T16:09:48Z")

</div>

> [@Richie](#):
>
> old Windows 2008 R2 server

Wow that is old! Just four months to EOL. Time to replace it I guess 😅

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [September 14, 2019, 10:39pm UTC](https://meta.discourse.org/t/could-not-create-ssl-tls-secure-channel-error-when-connecting-to-discourse-api-from-windows-server/128573/6 "2019-09-14T22:39:03Z")

</div>

> [@Richie](#):
>
> For whatever reason, the Windows server and the Discourse server were unable to agree on a cipher suite after the recent Discourse updates were installed earlier this week

Could this be related to your change @gerhard ?

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [September 15, 2019, 10:11am UTC](https://meta.discourse.org/t/could-not-create-ssl-tls-secure-channel-error-when-connecting-to-discourse-api-from-windows-server/128573/7 "2019-09-15T10:11:41Z")

</div>

I guess this was caused by the change of cipher suites during the upgrade to Debian. I would have expected that my addition of the elliptic curve certificate would have made this work on all older Windows systems, not just IE11. If I’m not mistaken IE11 uses the Windows crypto library… 🤷‍♂️

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [October 15, 2019, 10:11am UTC](https://meta.discourse.org/t/could-not-create-ssl-tls-secure-channel-error-when-connecting-to-discourse-api-from-windows-server/128573/8 "2019-10-15T10:11:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
