LoginSignup
12
8

More than 5 years have passed since last update.

webpack-dev-serverでおれおれSSL証明書を使う方法

Posted at

webpack-dev-serverで自己署名(独自)SSL証明書を使う場合は、--certにサーバ証明書、--keyにその秘密鍵を渡す。

webpack-dev-server \
  --config webpack.development.js \
  --hot \
  --host 0.0.0.0 \
  --https \
  --cert=localhost.crt \
  --key=localhost.key

独自SSL証明書自体の発行については『おれおれ認証局になっておれおれSSL証明書を発行してやる方法 - Qiita』を参照。

12
8
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
8