Skip to main content

Automatic SSL certificates from Let's Encrypt for Django projects

Project description

Django Autocert is a Django app to automatically obtain and renew X.509 (i.e. TLS or SSL) certificates from Let’s Encrypt or other certificate authorities that support the ACME protocol.


  • Django >=1.8
  • django.contrib.sites in your INSTALLED_APPS


  1. pip install django-autocert
  2. Add autocert to INSTALLED_APPS
  3. Add autocert.middleware.AcmeChallengeMiddleware to MIDDLEWARE_CLASSES, ahead of if it’s present.
  4. ./ migrate

Further Installation Notes

django-autocert requires cryptography which has platform-specific installation requirements for Linux and macOS:

Debian and Ubuntu

sudo apt-get install build-essential libssl-dev libffi-dev python-dev


sudo yum install gcc libffi-devel python-devel openssl-devel


brew install openssl env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography


django-autocert is MIT licensed


Patrick Farrell @farrepa on Github and Twitter

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-autocert, version 0.1.7
Filename, size File type Python version Upload date Hashes
Filename, size django_autocert-0.1.7-py2.py3-none-any.whl (11.4 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size django-autocert-0.1.7.tar.gz (7.8 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page