H
H
hckn2018-09-12 20:49:36
Nginx
hckn, 2018-09-12 20:49:36

How to develop locally with https?

To test the application, authorization, Secure cookies, etc., you need HTTPS.

How to do it locally?

Application - NodeJS server, SPA on View, proxy through nginx.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2018-09-12
@hckn

1. We generate a root self-signed certificate and add it to the system as a trusted one.
2. We come up with a virtual domain and through /etc/hosts we prescribe it to 127.0.0.1
3. We generate a certificate for the domain from step 2, sign it with the root certificate from step 1
4. Set up an https host for the domain from step 2 with a certificate from p.3
profit

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question