- Python 3.10 or newer
- Django 3.2 or newer
Install from PyPI using
pip
:pip install django-simple-certmanager
Add
simple_certmanager
to theINSTALLED_APPS
setting.Run
python src/manage.py migrate
to create the necessary database tablesConfigure django-privates correctly - the TLS certificates and keys are stored outside of
settings.MEDIA_ROOT
for security reasons.
Django admin
In the Django admin, you can create Certificate
instances to (re-)use (mutual) TLS
configuration.
Whenever an instance is deleted (through the admin or code), the associated files are purged as well.
Programmatically
The Certificate
model is the public API of the library.
.. autoclass:: simple_certmanager.models.Certificate :members: :undoc-members: :exclude-members: DoesNotExist, MultipleObjectsReturned, clean, save, id, objects