Automatic SSL certificates from Let's Encrypt for Django projects
Project description
Django Auto Cert 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](https://en.wikipedia.org/wiki/Automated_Certificate_Management_Environment).
## 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 present
4. `./manage.py migrate`
### Further Installation Notes
django-autocert requires [cryptography](https://cryptography.io/) which has [platform-specific installation requirements](https://cryptography.io/en/latest/installation/) 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](https://twitter.com/farrepa/)
## 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 present
4. `./manage.py migrate`
### Further Installation Notes
django-autocert requires [cryptography](https://cryptography.io/) which has [platform-specific installation requirements](https://cryptography.io/en/latest/installation/) 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](https://twitter.com/farrepa/)
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
django-autocert-0.1.1.tar.gz
(6.7 kB
view hashes)
Built Distribution
Close
Hashes for django_autocert-0.1.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58a58ed7b5fbda80b23a5337902d91d1aa234b1d99aaa35ce9213404d5da8af4 |
|
MD5 | e7c4f116e0526e420de1fab92fcd568b |
|
BLAKE2b-256 | 6a4f3b55d5d4033cb8605dd0a5d17b5c8a3187f3a06db311372d25e96d8968e7 |