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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file django-autocert-0.1.7.tar.gz.
File metadata
- Download URL: django-autocert-0.1.7.tar.gz
- Upload date:
- Size: 7.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dcb44b2c3e12e17d9b9a8fc48d89bf2cc5bb2b6672b3509cd59bb26cd3de65ab
|
|
| MD5 |
fe98bc50c49702717a59f11395956a47
|
|
| BLAKE2b-256 |
99aaa228a547ce8d395af97c643a6443fc5d3f10a81bc568f86fc19a5059c263
|
File details
Details for the file django_autocert-0.1.7-py2.py3-none-any.whl.
File metadata
- Download URL: django_autocert-0.1.7-py2.py3-none-any.whl
- Upload date:
- Size: 11.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/2.7.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ef1e985987ca3eb356fa410683a616640a722710514e8574cb54eb6a35ea3869
|
|
| MD5 |
d37519a269cfdd96955df3df8a66295b
|
|
| BLAKE2b-256 |
59a9540a6466be5573151a21b8eba6e93b84730dd043eb75b262ff0366f35d18
|