nguyenbathanh / django-letsencrypt

A simple Django app to handle Let's Encrypt ACME challenges

Home Page:https://pypi.org/project/django-letsencrypt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Let's Encrypt App for Django

Linting Checks - Master Branch

Testing - Master Branch

Codecov - Master Branch

django-letsencrypt will allow you to add, remove, and update any ACME challenge objects you may need through your Django admin interface. Simply add the ACME challenge and response for your app to serve up the necessary information for Let's Encrypt validation.

This project strives to make installation, configuration, and usage a snap! From high levels of code coverage, multiple compatible python versions, multiple versions of Django supported, even multiple databases too!

And of course all wrapped up and published to PyPI for standard installation!

Supported Configurations

django-letsencrypt is tested across a number of configurations, here's what's supported so far:

  • Python Versions Supported:
    • 3.9
    • 3.8
    • 3.7
    • 3.6
  • Django Versions Supported:
    • 3.2 minimum version 3.2.3
    • 3.1 minimum version 3.1.11
    • 2.2 minimum version 2.2.23
  • Databases Supported:
    • mysql
    • postgres
    • sqlite

Installation & Configuration

  1. pip install django-letsencrypt

  2. Add letsencrypt to your INSTALLED_APPS

INSTALLED_APPS = [
   ... ,
   'letsencrypt',
   ... ,
]
  1. Include the letsencrypt in your project's urls.py, or where applicable (usually your root urls.py).
url(r'^\.well-known/', include('letsencrypt.urls'))
  1. Run manage.py migrate to create the required table for the letsencrypt model

  2. Create your ACME Challenge objects in your Django admin interface

  3. Test your ACME Challenge objects and their responses by visiting them:

{Django Site}/.well-known/acme-challenge/challenge_text
  1. Enjoy your easy to manage ACME Challenges inside your Django project!

Example Project

If you would like a demo of how to use this application simply clone this project's git repository from GitHub, take a moment to read the README.md file within the example_project directory, and follow the directions. That will spin up a small sample django application already configured for you to try out.

About

A simple Django app to handle Let's Encrypt ACME challenges

https://pypi.org/project/django-letsencrypt/

License:Apache License 2.0


Languages

Language:Python 82.8%Language:Makefile 13.5%Language:HTML 2.1%Language:Shell 1.5%