Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to setup SSL on a local django server to test a facebook app?

I've configured my local machine's HOSTS configuration to access the local server ( @ 127.0.0.1 ) whenever I hit http://www.mydomain.com on the browser.

And I was using this to interact with facebook's graph api to build my app. But now facebook requires us to have an HTTPS url or rather an SSL secured url to interact with their api.

So the question is -> How do I setup SSL on a local django server ?

like image 376
Sussagittikasusa Avatar asked Sep 30 '11 12:09

Sussagittikasusa


1 Answers

Not to necro a thread, but I found this tool to be extremely easy to use.

It's a premade django application with very simple install instructions.

You can add a certified key once it is installed simply by running:

python manage.py runsslserver --certificate /path/to/certificate.crt --key /path/to/key.key 

I hope this helps any passer-by who might see this.

like image 152
jdero Avatar answered Oct 01 '22 01:10

jdero