Skip to content

feat/mkcert: Add support for local SSL ⚙️#1075

Open
lbeckman314 wants to merge 2 commits into
shift-org:mainfrom
lbeckman314:feat/mkcert
Open

feat/mkcert: Add support for local SSL ⚙️#1075
lbeckman314 wants to merge 2 commits into
shift-org:mainfrom
lbeckman314:feat/mkcert

Conversation

@lbeckman314

@lbeckman314 lbeckman314 commented Jun 28, 2026

Copy link
Copy Markdown

Overview 🌀

This PR adds a ./shift mkcerts command to support SSL on local deployments (via mkcert)!

Current Behavior ⚠️

https://github.com/shift-org/shift-docs#local-development-with-docker

➜ git clone https://github.com/shift-org/shift-docs
Cloning into 'shift-docs'...

➜ cd shift-docs

➜ git show --summary --oneline
e622c623 (HEAD -> main, upstream/main, origin/main, origin/HEAD) Update Pages “weekly-rides”

➜ ./shift up

➜ # Browse to https://localhost:4443
Firefox Chrome
Firefox Chrome

New Behavior ✔️

Important

Requires mkcert be installed, otherwise users will get a mkcert is not installed error.

See https://github.com/FiloSottile/mkcert#installation for the latest installation options

➜ git clone https://github.com/shift-org/shift-docs
Cloning into 'shift-docs'...

➜ cd shift-docs

➜ git checkout feat/mkcert
branch 'feat/mkcert' set up to track 'origin/feat/mkcert'.
Switched to a new branch 'feat/mkcert'

➜ git show --summary --oneline
32ba82c0 (HEAD -> feat/mkcert, origin/feat/mkcert) Merge remote-tracking branch 'upstream/main' into feat/mkcert

➜ ./shift mkcert
Generating certificate for localhost...

Created a new certificate valid for the following names 📜
 - "localhost"

The certificate is at "./services/nginx/ssl/default.crt" and the key at "./services/nginx/ssl/default.key" ✅

It will expire on 27 September 2028 🗓

➜ ./shift up

➜ # Browse to https://localhost:4443
Firefox Chrome
Firefox Chrome

Breaking Changes? ❌

  • No, this is a "feature flag"-type update that simply adds an additional command for local development. The existing ./shift up command is unaffected, as do the steps in README.md!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant