Skip to content
This repository has been archived by the owner on Apr 8, 2019. It is now read-only.

HTTPS cert / key args don't work via CLI #146

Closed
1 of 3 tasks
wbobeirne opened this issue May 21, 2018 · 0 comments · Fixed by #154
Closed
1 of 3 tasks

HTTPS cert / key args don't work via CLI #146

wbobeirne opened this issue May 21, 2018 · 0 comments · Fixed by #154

Comments

@wbobeirne
Copy link

  • Operating System: OSX
  • Node Version: 8.9.4
  • NPM Version: 6.0.1
  • webpack Version: 4.8.3
  • webpack-serve Version: 1.0.2

This issue is for a:

  • bug
  • feature request
  • modification request

Code

CLI Command
  $ webpack-serve ./webpack.config.js --https-cert ./certificate.pem --https-key ./key.pem
webpack.config.js

N/A

Expected Behavior

Webpack serve starts with an HTTPS server

Actual Behavior

The following error:

An error was thrown while starting webpack-serve.
{ Error: error:0906D06C:PEM routines:PEM_read_bio:no start line

This is because key and cert are supposed to be the contents of the files, but when passed via CLI, https is sent the file paths, not the contents of the file. There'll need to be some additional handling of these options to read the content of the files.

How Do We Reproduce?

Specify https-cert and https-key on the command line.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant