You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
cacert: './server.pem' is being used and the CA is provided.
Actual Behavior
The CA is not provided.
For Bugs; How can we reproduce the behavior?
Trust the CA in the local machine, then run the dev server using the config above. You would see that the browser(chrome) warns Your connection is not private.
With webpack-dev-server 3.11.0, the same config (with cacert named as ca) works.
Code
Please paste the results of
npx webpack-cli info
here, and mention other relevant informationExpected Behavior
cacert: './server.pem'
is being used and the CA is provided.Actual Behavior
The CA is not provided.
For Bugs; How can we reproduce the behavior?
Trust the CA in the local machine, then run the dev server using the config above. You would see that the browser(chrome) warns
Your connection is not private
.With
webpack-dev-server 3.11.0
, the same config (withcacert
named asca
) works.The root cause is that in Node.JS's
https.createServer
's options, there is no propertycacert
, and the expected property isca
: https://nodejs.org/docs/latest-v16.x/api/tls.html#tls_tls_createsecurecontext_optionsBut the dev server is passing
cacert
, instead ofca
, tohttps.createServer
webpack-dev-server/lib/Server.js
Line 519 in c11c759
The bug is introduced by #3240
The text was updated successfully, but these errors were encountered: