# Running Discourse with SSL in Development

**URL:** <https://meta.discourse.org/t/running-discourse-with-ssl-in-development/149009>\
**Category:** Development\
**Created:** [23 april 2020 om 15:26 UTC](https://meta.discourse.org/t/running-discourse-with-ssl-in-development/149009 "2020-04-23T15:26:10Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![eatcodetravel](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eatcodetravel/32/94385_2.png) [@eatcodetravel](https://meta.discourse.org/u/eatcodetravel)\
**Post date:** [23 april 2020 om 15:26 UTC](https://meta.discourse.org/t/running-discourse-with-ssl-in-development/149009/1 "2020-04-23T15:26:10Z")

</div>

Hello,

I was looking if there was a solution but only topics that don’t provide help with this issue. I’m trying to get SSL running locally in Discourse. Looking at Rails tutorials to make this they recommend using the `-b` flag when running rails server, like.

`rails s -b 'ssl://127.0.0.1:3000?key=config/ssl/localhost.key&cert=config/ssl/localhost.crt'`

But this doesn’t work as expected in Discourse.

To generate the certificates I’m using [GitHub - FiloSottile/mkcert: A simple zero-config tool to make locally trusted development certificates with any names you'd like. · GitHub](https://github.com/FiloSottile/mkcert).

Any feedback would be appreciated.

Thanks!

---

_[View the full topic](https://meta.discourse.org/t/running-discourse-with-ssl-in-development/149009)._
