Fast SSL for LocalHost with Ruby on Rails 7 @Deanin
Fast SSL for LocalHost with Ruby on Rails 7  @Deanin
Uploaded May 2023 | Updated September 2026, 2 hours ago
The commands are in the description down below and also in the GitHub repo linked down below.
Checkout my course(s) at: learn.deanin.com

Source:
github.com/Deanout/fast_ssl

# README
This is a way to set up SSL fast for localhost in a Ruby on Rails 7 app.

The first command is required. Running the server is optional if you don't include the change to the config/puma.rb file. With the change to the puma file, you can just run a `rails s` and visit the port in your puma file (Defaulted to 3001) to see your https app. EX: By default it's set to 3001 in the puma file, so visiting https://localhost:3001 will be how you can use SSL.

## Create SSL Cert
```sh
openssl req -x509 -sha256 -nodes -newkey rsa:2048 -keyout localhost.key -out localhost.crt -subj "/CN=localhost" -days 365
```
## Run Server
```sh
rails s -b "ssl://localhost:3000?key=config/ssl/localhost.key&cert=config/ssl/localhost.crt"
```

Join this channel to help support these videos:
youtube.com/channel/UCRQv-3VvPT9mArF5RfrlpKQ/join

Follow me on social media:
https://linktr.ee/deanin

If you liked this video, please consider subscribing: https://t.co/RZ4EwP0F2a

Timestamps

#Deanin #Software #Programming
Fast SSL for LocalHost with Ruby on Rails 7Devise Admin and Users with Different Models | Ruby on Rails 7 TutorialGoogle Bard AI First Impressions With Ruby On Rails 7Blocks, Procs, and Lambda Functions in RubyLogidze Gem for Change Tracking in Rails 7The Mermaid.js ERD Gem for Auto Diagrams | Ruby on Rails 7 TutorialAdding a Searchbar to React on Rails Part 26If Conditionals in Ruby for Beginners 6Creating A Private Ruby Gem for Ruby on Rails 7Store Runescape API Player Data In Ruby on Rails 7Formtastic Makes Forms So Much Easier In Rails 7 | Ruby on Rails 7 TutorialDev Containers - New To Rails 8!
Deanin |

Fast SSL for LocalHost with Ruby on Rails 7

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER