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
pip install django-autocert
Add autocert to INSTALLED_APPS
Add autocert.middleware.AcmeChallengeMiddleware to MIDDLEWARE_CLASSES, ahead of django.middleware.security.SecurityMiddleware if it’s present.
./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
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for django_autocert-0.1.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8ed663653c95d48301ef28b66a5dd20bc02c4f23d26f858d61f0835bdd2a24aa |
|
MD5 | 57d6583dc3fded39762528cb6becc495 |
|
BLAKE2b-256 | 47b2174b3484732da4239a416c11b0518e974064917d29aa2fe00c65cf5f23fd |