DEV Community

Discussion on: Local development with HTTPS on OSX

Collapse
 
danielhoffmann_ profile image
Daniel HB

I have the same problem at my job, but we just use webpack-dev-server, it has an option to enable HTTPS. If you enable it and don't provide a certificate it just automatically auto-generates a self-signed one for you which you need to manually allow in your browser or add to your certificate manager. One caveat is that whenever you make a clean npm install it generates a new certificate which you need to allow again.

If your project is not node you should still be able to use it in conjunction with the proxy option to forward requests to another localhost port. This solution would be similar to local-ssl-proxy.

Collapse
 
stenpittet profile image
Sten

Yes, we got that working out of the box on our React app, but we had to do custom startup scripts for the other services.

It's definitely a great feature.