Skip to content

Instantly share code, notes, and snippets.

@uhfx
Created May 22, 2021 05:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save uhfx/6e70755148a5fcf8f178a9b36b40c554 to your computer and use it in GitHub Desktop.
Save uhfx/6e70755148a5fcf8f178a9b36b40c554 to your computer and use it in GitHub Desktop.
オレオレ証明書の導入
user@MacBook-Pro ~ % brew install mkcert
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> Updated Formulae
Updated 64 formulae.
==> New Casks
mambaforge
==> Updated Casks
Updated 14 casks.
==> Downloading https://ghcr.io/v2/homebrew/core/mkcert/manifests/1.4.3-1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/mkcert/blobs/sha256:4dc23706517
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Pouring mkcert--1.4.3.big_sur.bottle.1.tar.gz
🍺 /usr/local/Cellar/mkcert/1.4.3: 6 files, 3.9MB
user@MacBook-Pro ~ % brew install nss
==> Downloading https://ghcr.io/v2/homebrew/core/nspr/manifests/4.30
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/nspr/blobs/sha256:f2d71db589972
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/nss/manifests/3.65
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/nss/blobs/sha256:5b4d99ae3c10ed
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sh
######################################################################## 100.0%
==> Installing dependencies for nss: nspr
==> Installing nss dependency: nspr
==> Pouring nspr--4.30.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/nspr/4.30: 86 files, 1.2MB
==> Installing nss
==> Pouring nss--3.65.big_sur.bottle.tar.gz
🍺 /usr/local/Cellar/nss/3.65: 224 files, 43.6MB
user@MacBook-Pro ~ % mkcert -install
Created a new local CA 💥
Sudo password:
The local CA is now installed in the system trust store! ⚡️
The local CA is now installed in the Firefox trust store (requires browser restart)! 🦊
user@MacBook-Pro ~ % mkcert 0.0.0.0 localhost 127.0.0.1 ::1
Created a new certificate valid for the following names 📜
- "0.0.0.0"
- "localhost"
- "127.0.0.1"
- "::1"
The certificate is at "./0.0.0.0+3.pem" and the key at "./0.0.0.0+3-key.pem" ✅
It will expire on 22 August 2023 🗓
user@MacBook-Pro ~ %
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment