macos-setup
🐱 Source ☕️ Java SampleGo Sample Angular Sample
  • Mac Setup
  • Getting Started
    • Xcode
    • Homebrew
    • System Preferences
    • Essentials
    • Dotfiles
  • Applications
    • Ghostty
    • Sublime-text
    • JetBrains
    • VSCode
    • Xcode
    • Marta
    • Benthos
    • OrbStack
    • Traefik
    • n8n
  • Platforms
    • Java
    • Node
      • Bub
      • NPM
      • PNPM
      • Turborepo
    • GoLang
    • Rust
    • Python
      • Testing
      • Agno AI
  • DevOps
    • Development Workflow
      • Git
        • GitHub CLL
      • GitOps
      • Documentation
      • mkcert
      • YubiKey
    • Monorepo
    • dnsmasq
    • Docker
    • Skaffold
    • Kubernetes
    • Helm
    • Kustomize
    • kustomizer
    • Terraform
    • Security
    • Cloud
      • gcloud
      • azure
      • aws
  • Tips
    • Git
    • MacOS
Powered by GitBook
On this page
  • Install
  • Setup
  • Create Certs
  • Usage
  • Reference

Was this helpful?

Edit on GitHub
  1. DevOps
  2. Development Workflow

mkcert

PreviousDocumentationNextYubiKey

Last updated 1 year ago

Was this helpful?

is a simple tool for making locally-trusted development certificates. It requires no configuration.

** Alternative Method(Recommended)**: Use and certs provided at this site instead of mkcert This approach even works, when you don't have admin access to company issued MacBook.

Install

brew install mkcert

Setup

# NOTE: sudo is needed
mkcert -install
# this will create root CA cert into: `mkcert -CAROOT` output
mkcert -CAROOT
ls -1 ~/Library/Application\ Support/mkcert 

Create Certs

for example if you want to create certs for traefik:

Decide on your URL scheme like *.nip.io, localhost.direct, *.localhost, *.vcap.me, or even *.bret.lol

cd  infra/traefik
mkdir certs && cd certs 

mkcert -cert-file localhost.direct-cert.pem -key-file localhost.direct-key.pem \
"*.localhost.direct" localhost 127.0.0.1 ::1

Reminder: X.509 wildcards only go one level deep, so this won't match a.b.localhost.direct

Usage

Reference

Used to setup https on localhost for , SvelteKit project

mkcert
localhost.direct
Vite
Available Public Wildcard DNS Domains pointing to localhost (127.0.0.1)
localhost.direct