You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the default settings, your local browser will make all sorts of noise that it doesn't trust the certificate. This is expected.
Django SSL Server ships "batteries included" with a self-signed server certificate. With self-signed certificates,
the server is effectively telling the user, "I'm such-and-such server, because I said so". Whereas, with a commercial
SSL certificate, the server tells the user, "I'm Bank of America, because VeriSign said so (or any other commercial certificate authority)."
There are two options for making the certificate warning go away in development:
Option 1: Tell your browser to explicitly trust the certificate. You can do this in your browser's "advanced settings"
tab, by installing sslserver/certs/development.crt as a trusted certificate. The mechanism for this varies from browser to browser.
Option 2: Use a certificate from a CA that your browser trusts, for example Letsencrypt.
If you have a certificate/key pair from a certificate authority,
you can tell Django SSL Server to use it with the following arguments:
If you're using a wrapper around your WSGI application such as dj_static or WhiteNoise, you probably want to let it handle serving
static files. Otherwise, you may see 404s when requesting static files. You can disable the default behavior by using the --nostatic
option.
Getting Involved
Feel free to open pull requests or issues. GitHub is the canonical location of this project.