Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cbetta/sinatra-letsencrypt-heroku-demo

Using LetsEncrypt with Sinatra on Heroku
https://github.com/cbetta/sinatra-letsencrypt-heroku-demo

heroku letsencrypt sinatra ssl tutorial

Last synced: 3 days ago
JSON representation

Using LetsEncrypt with Sinatra on Heroku

Awesome Lists containing this project

README

        

# Using LetsEncrypt with Sinatra on Heroku

This is a short and straightforward tutorial showing how to use [Sinatra](http://www.sinatrarb.com/) on [Heroku](https://heroku.com) with an auto-renewing SSL certificate from [LetsEncrypt](https://letsencrypt.org/).

LetsEncrypt is awesome because it's believes security should be built into the web without any extra cost.

The code for this demo can be found here. There is both a `before` and `after` branch with the code before and after I added SSL respectively.

[Read the full tutorial.](https://betta.io/blog/2016/10/28/using-letsencrypt-with-sinatra-on-heroku/)

## What this will cover

* Create a basic Sinatra app that shows a basic `Hello World` message
* Deploy to Heroku will allow us to see the app in action before we add SSL.
* Add LetsEncrypt capabilities to the application.
* Configure the certificate to match our domain, before we can create it.
* Create a certificate and automatically store it with Heroku.
* Enforce SSL so the site can no longer be served over `http`.
* Schedule renewal of the certificate so you never have to get involved again.

[Read the full tutorial.](https://betta.io/blog/2016/10/28/using-letsencrypt-with-sinatra-on-heroku/)