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.

Requirements

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

Installation

  1. pip install django-autocert
  2. Add autocert to INSTALLED_APPS
  3. Add autocert.middleware.AcmeChallengeMiddleware to MIDDLEWARE_CLASSES, ahead of django.middleware.security.SecurityMiddleware if it’s present.
  4. ./manage.py 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

RHEL/Fedora

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

macOS

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

License

django-autocert is MIT licensed

Authors

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.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_autocert-0.1.6-py2.py3-none-any.whl (11.4 kB) Copy SHA256 hash SHA256 Wheel py2.py3 Aug 23, 2018
django-autocert-0.1.6.tar.gz (7.8 kB) Copy SHA256 hash SHA256 Source None Aug 23, 2018

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page