最終更新:2023-04-28 (金) 15:40:52 (370d)  

mkcert
Top / mkcert

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

https://github.com/FiloSottile/mkcert

Windows

ローカルCA(認証局)を作成

  • mkcert -install?

証明書の発行

  • ホスト名を引数に渡す
    mkcert example.com
    example.com.pem (サーバー証明書)
    example.com-key.pem (秘密鍵)

  • $ mkcert example.com "*.example.com" example.test localhost 127.0.0.1 ::1
    
    Created a new certificate valid for the following names 📜
     - "example.com"
     - "*.example.com"
     - "example.test"
     - "localhost"
     - "127.0.0.1"
     - "::1"
    
    The certificate is at "./example.com+5.pem" and the key at "./example.com+5-key.pem"