Sacco Giacomo
Sacco Giacomo

Reputation: 1

Run local NGINX web app on HTTPS without domain name

I'm developing a django web app which runs on a gunicorn-nginx local server.

I've followed this digitalocean guide to setup the web app but I don't understand how to create a ssl certificate and use it without having a domain name. I've found a lot of guides but none of them specify how to enable HTTPS without a domain and using a local IP.

How can I make this happen?

Upvotes: 0

Views: 2369

Answers (1)

Vishnu Nadhan
Vishnu Nadhan

Reputation: 676

One way would be to create a self-signed certificate using openssl (How to generate a self-signed SSL certificate using OpenSSL?). But these certificates will not have the security layer provide by CA certificate providers.

Once you have a certificate, then you can run the gunicorn server in HTTPS mode by providing the certificate and the key (Running gunicorn on https?)

Upvotes: 1

Related Questions