This is no longer required. @fab/serve
supports https since v0.2
A simple https server (running on https://localhost:3001) that proxies requests to whatever fab-serve app is running (at http://localhost:3000), and allowing you to verify secure apps locally.
- Clone this project
- Install dependenceies (
npm i
) - Generate a SSL certificate, making sure to complete the following fields:
- Country Name
- State or Province Name
- Locality Name
- Organization Name
- Common Name = localhost
- Email Address
- Start your FAB (
npx @fab/serve fab.zip
in your app directory, or whatever script you use) - Start this server (
npm start
) - The server root will open in your browser, so you can accept the SSL certificate exception (if you haven't already)
This command should work if you have OpenSSL installed:
openssl req -nodes -new -x509 -keyout server.key -out server.cert