1

I'm trying to implement SSL on my dev server, purely just so I can see it working.

I see from the Certbot page that Certbot works with Apache, Nginx, Haproxy and Plesk.

How would I go about implementing this with Django's dev server? I'm not working in a production environment of any kind yet.

Cathal
  • 318
  • 4
  • 15

2 Answers2

2

Just to clear something up first: djangos dev server ./manage.py runserver does NOT serve HTTPS, only plain HTTP.

So you should use a webserver (from the ones you mentioned: Apache, Nginx, Haproxy or Plesk) to test you SSL/HTTPS with the certs.

See this post and this code example for ideas to implement SSL with the dev server.

Ralf
  • 16,086
  • 4
  • 44
  • 68
1

You should create a self signed cert and then you can set up Nginx as a front facing webserver for your uWSGI Django app.

cherrysoft
  • 1,165
  • 8
  • 17