Skip to content

Instantly share code, notes, and snippets.

@k4zuki02h4t4
Last active May 1, 2017 04:54
Show Gist options
  • Save k4zuki02h4t4/ea9967e8eb1b997f810823fbb4568d46 to your computer and use it in GitHub Desktop.
Save k4zuki02h4t4/ea9967e8eb1b997f810823fbb4568d46 to your computer and use it in GitHub Desktop.
$ cd Users/YOURNAME/Library/Application\ Support/Local\ by\ Flywheel/router/certs
$ mv ./* ../
$ openssl req -new -newkey rsa:2048 -sha256 -nodes \
-out visualive.dev.csr \
-keyout visualive.dev.key \
-subj "/C=JP/ST=Saitama/L=Warabi/O=VisuAlive./OU=IT/CN=visualive.dev" \
-reqexts SAN \
-config <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\nsubjectAltName=DNS:visualive.dev,DNS:*.visualive.dev"))
# 正常に発行されているかの確認コマンド
# 確認しない場合は実行しなくてもよい
$ openssl req -in visualive.dev.csr -text -noout
$ openssl x509 -days 3650 -req \
-signkey visualive.dev.key < visualive.dev.csr > visualive.dev.crt \
-extensions SAN \
-extfile <(cat /etc/ssl/openssl.cnf <(printf "[SAN]\nsubjectAltName=DNS:visualive.dev,DNS:*.visualive.dev"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment