Skip to content

Make the SSL certificate and key configurable for localhost #4050

Closed
@jackpetraitis

Description

@jackpetraitis

I want to be able to provide self-signed certs and keys to my app during localhost development. These files need to be passed to the webpack-dev-server that runs behind the scenes when I do the "npm start" script from this package.

There are many ways to sign your own SSL certificate, and I know webpack-dev-server has the ability to run https over its own self-signed certificate.

However, this doesn't meet my request. I also know that the webpack-dev-server can take in key and cert file locations as arguments, and that is what my issue is targeting. I think we should add the ability to configure certificate and key file locations. This will make any development requiring SSL on localhost more straightforward.

How could we go about doing that?

I think there are two options:

  • Make them optional command-line arguments for the "npm start" script, configurable in package.json
  • Make the keys and certs follow a common naming convention or possibly use a certain folder structure

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions